one_offs 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 45c9eb805c63b2bfefa74d1bfb70a54ef23999a7
4
+ data.tar.gz: 695356bc63ed14004aa407e56dd8353f1e03fe4d
5
+ SHA512:
6
+ metadata.gz: e6c680612a3112a940783b7345dd4758e7b2530be8fc261a461d00dc9b955903a35c78494c74ec37a7ffbddb3e4603f48fca327f4633707793214a51691058ad
7
+ data.tar.gz: b4c31a19bf066f553196a80cbdbbe28e5a8914aab17c470c57051d6e90172c1e023ef483713b62a632e347337ddc8165e003f016e4275b47e6c6f0b90642e27c
data/README.md ADDED
@@ -0,0 +1,48 @@
1
+ One Offs
2
+ ========
3
+
4
+ Track and manage your one off scripts, in rails applications.
5
+
6
+ Can be used to move stuff out from your rails migrations that dont belong there. For example data migrations can be moved from schema and into one-offs.
7
+
8
+ ## Installation
9
+
10
+ Add this line to your application's Gemfile:
11
+
12
+ gem 'one_offs'
13
+
14
+ And then execute:
15
+
16
+ $ bundle
17
+
18
+ Or install it yourself as:
19
+
20
+ $ gem install one_offs
21
+
22
+ ## Usage
23
+
24
+ After installing the gem, In your Rakefile (/Rakefile) add the following line
25
+
26
+ require 'one_offs/tasks'
27
+
28
+
29
+ And setup a tracker table.
30
+
31
+
32
+ rake one_offs:generate_tracker_table
33
+
34
+ Add scripts to `lib/one_offs/`
35
+
36
+ To run pending one_off scripts.
37
+
38
+ rake one_offs:run
39
+
40
+ To baseline one_offs seed them into to the tracker table.
41
+
42
+ ## Contributing
43
+
44
+ 1. Fork it
45
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
46
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
47
+ 4. Push to the branch (`git push origin my-new-feature`)
48
+ 5. Create new Pull Request
@@ -2,8 +2,7 @@ require 'active_record'
2
2
 
3
3
  module OneOffs
4
4
  class Tracker < ActiveRecord::Base
5
- self.table_name = "one_off_tracker"
6
- attr_accessible :name
5
+ self.table_name = "one_off_trackers"
7
6
 
8
7
  class << self
9
8
  def complete?(name)
@@ -1,3 +1,3 @@
1
1
  module OneOffs
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0"
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>, ['>= 1.15.6'])
21
+ s.add_dependency(%q<activerecord>, ['~> 1.15', '>= 1.15.6'])
22
22
  end
metadata CHANGED
@@ -1,30 +1,33 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: one_offs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
5
- prerelease:
4
+ version: 0.2.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Jatin Naik
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-08-15 00:00:00.000000000 Z
11
+ date: 2015-09-17 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: activerecord
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.15'
20
+ - - ">="
20
21
  - !ruby/object:Gem::Version
21
22
  version: 1.15.6
22
23
  type: :runtime
23
24
  prerelease: false
24
25
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
26
  requirements:
27
- - - ! '>='
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '1.15'
30
+ - - ">="
28
31
  - !ruby/object:Gem::Version
29
32
  version: 1.15.6
30
33
  description: Track and manage your one off scripts with rake
@@ -34,9 +37,10 @@ executables: []
34
37
  extensions: []
35
38
  extra_rdoc_files: []
36
39
  files:
37
- - .gitignore
40
+ - ".gitignore"
38
41
  - Gemfile
39
42
  - LICENCE
43
+ - README.md
40
44
  - Rakefile
41
45
  - lib/one_offs.rb
42
46
  - lib/one_offs/runner.rb
@@ -46,26 +50,25 @@ files:
46
50
  - one_offs.gemspec
47
51
  homepage: http://github.com/tinygrasshopper/one_offs
48
52
  licenses: []
53
+ metadata: {}
49
54
  post_install_message:
50
55
  rdoc_options: []
51
56
  require_paths:
52
57
  - lib
53
58
  required_ruby_version: !ruby/object:Gem::Requirement
54
- none: false
55
59
  requirements:
56
- - - ! '>='
60
+ - - ">="
57
61
  - !ruby/object:Gem::Version
58
62
  version: '0'
59
63
  required_rubygems_version: !ruby/object:Gem::Requirement
60
- none: false
61
64
  requirements:
62
- - - ! '>='
65
+ - - ">="
63
66
  - !ruby/object:Gem::Version
64
67
  version: '0'
65
68
  requirements: []
66
69
  rubyforge_project: one_offs
67
- rubygems_version: 1.8.24
70
+ rubygems_version: 2.4.6
68
71
  signing_key:
69
- specification_version: 3
72
+ specification_version: 4
70
73
  summary: Track and manage your one off scripts
71
74
  test_files: []