one_offs 0.0.2 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,7 +16,7 @@ module OneOffs
16
16
  if(!Tracker.complete?(one_off_name))
17
17
  puts "Running #{one_off}"
18
18
  require one_off
19
- one_off_class = one_off_name.scan(/\d_(.*)/).to_s.classify
19
+ one_off_class = one_off_name.scan(/\d_(.*)/).flatten.first.classify
20
20
  Object.const_get(one_off_class).send(:process)
21
21
 
22
22
  Tracker.complete(one_off_name)
@@ -8,6 +8,6 @@ namespace :one_offs do
8
8
 
9
9
  desc "Create a one off tracker table"
10
10
  task :generate_tracker_table do
11
- `script/generate migration CreateOneOffTracker name:string`
11
+ `rails generate migration CreateOneOffTracker name:string`
12
12
  end
13
13
  end
@@ -2,7 +2,8 @@ require 'active_record'
2
2
 
3
3
  module OneOffs
4
4
  class Tracker < ActiveRecord::Base
5
- set_table_name "one_off_tracker"
5
+ self.table_name = "one_off_tracker"
6
+ attr_accessible :name
6
7
 
7
8
  class << self
8
9
  def complete?(name)
@@ -1,3 +1,3 @@
1
1
  module OneOffs
2
- VERSION = "0.0.2"
2
+ VERSION = "0.1.1"
3
3
  end
data/one_offs.gemspec CHANGED
@@ -18,5 +18,5 @@ Gem::Specification.new do |s|
18
18
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
19
  s.require_paths = ["lib"]
20
20
 
21
- s.add_dependency(%q<activerecord>, ['< 3.0.0', '>= 1.15.6'])
21
+ s.add_dependency(%q<activerecord>, ['>= 1.15.6'])
22
22
  end
metadata CHANGED
@@ -1,56 +1,39 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: one_offs
3
- version: !ruby/object:Gem::Version
4
- hash: 27
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 0
9
- - 2
10
- version: 0.0.2
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Jatin Naik
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-03-08 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2012-08-15 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: activerecord
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
26
- - - <
27
- - !ruby/object:Gem::Version
28
- hash: 7
29
- segments:
30
- - 3
31
- - 0
32
- - 0
33
- version: 3.0.0
34
- - - ">="
35
- - !ruby/object:Gem::Version
36
- hash: 39
37
- segments:
38
- - 1
39
- - 15
40
- - 6
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
41
21
  version: 1.15.6
42
22
  type: :runtime
43
- version_requirements: *id001
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 1.15.6
44
30
  description: Track and manage your one off scripts with rake
45
- email:
31
+ email:
46
32
  - jsnaik@gmail.com
47
33
  executables: []
48
-
49
34
  extensions: []
50
-
51
35
  extra_rdoc_files: []
52
-
53
- files:
36
+ files:
54
37
  - .gitignore
55
38
  - Gemfile
56
39
  - LICENCE
@@ -63,36 +46,26 @@ files:
63
46
  - one_offs.gemspec
64
47
  homepage: http://github.com/tinygrasshopper/one_offs
65
48
  licenses: []
66
-
67
49
  post_install_message:
68
50
  rdoc_options: []
69
-
70
- require_paths:
51
+ require_paths:
71
52
  - lib
72
- required_ruby_version: !ruby/object:Gem::Requirement
53
+ required_ruby_version: !ruby/object:Gem::Requirement
73
54
  none: false
74
- requirements:
75
- - - ">="
76
- - !ruby/object:Gem::Version
77
- hash: 3
78
- segments:
79
- - 0
80
- version: "0"
81
- required_rubygems_version: !ruby/object:Gem::Requirement
55
+ requirements:
56
+ - - ! '>='
57
+ - !ruby/object:Gem::Version
58
+ version: '0'
59
+ required_rubygems_version: !ruby/object:Gem::Requirement
82
60
  none: false
83
- requirements:
84
- - - ">="
85
- - !ruby/object:Gem::Version
86
- hash: 3
87
- segments:
88
- - 0
89
- version: "0"
61
+ requirements:
62
+ - - ! '>='
63
+ - !ruby/object:Gem::Version
64
+ version: '0'
90
65
  requirements: []
91
-
92
66
  rubyforge_project: one_offs
93
- rubygems_version: 1.8.10
67
+ rubygems_version: 1.8.24
94
68
  signing_key:
95
69
  specification_version: 3
96
70
  summary: Track and manage your one off scripts
97
71
  test_files: []
98
-