Changeset 3022 for lang/ruby/coderepos_stat
- Timestamp:
- 12/11/07 00:16:14 (13 months ago)
- Files:
-
- 1 modified
-
lang/ruby/coderepos_stat/coderepos-commit-ping.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/ruby/coderepos_stat/coderepos-commit-ping.rb
r3014 r3022 18 18 y = YAML.load(yaml) 19 19 20 d ir = "data/#{y['date'][0..9]}" # YYYYMMDD21 time = "#{y['date'][11..12]}#{y['date'][14..15]}#{y['date'][17..18]}" # HHMMSS20 date = Time.parse(y['date'], '%Y-%m-%d %H:%M:%S %Z') 21 dir = "data/#{date.strftime('%Y%m%d')}" 22 22 Dir.mkdir(dir) unless FileTest.exist?(dir) 23 23 24 file = "#{dir}/commit-#{ time}.yaml"24 file = "#{dir}/commit-#{date.strftime('%H%M%S')}.yaml" 25 25 File.open(file, 'w') do |f| 26 26 f.print yaml
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)