micro_migrations 0.0.1 → 0.0.2
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 +4 -4
- data/README.md +42 -0
- data/lib/micro_migrations.rb +4 -2
- data/lib/micro_migrations/version.rb +1 -1
- metadata +33 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff2cabe608b88431eabae3b6fbace748504c217b
|
4
|
+
data.tar.gz: 06607ba743f905957850d79c919599fa8d99ef81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a12ab5c265697c261bacf662bb7b8e3cabacdf5c1173e6253d7804347c4402b013945237251b48d385289654ddbdf24808f0ffe6b9798f8f3e86553904611520
|
7
|
+
data.tar.gz: b76518a92720f301bb45a9f379d77d3af04b6092b72eb174d36f33adddb57eef537cf067af45de40cb8583dc5f168dbd7caa383702fe169e9910fcdc9ba39924
|
data/README.md
CHANGED
@@ -4,3 +4,45 @@ Minimal ActiveRecord standalone migrations.
|
|
4
4
|
|
5
5
|
Not as minimal as it can be in Rails 4, but we need this for Rails 3 and using
|
6
6
|
a GistGem (https://gist.github.com/svenfuchs/2087829) sometimes causes hassles.
|
7
|
+
|
8
|
+
## Installation
|
9
|
+
|
10
|
+
Add this line to your application's Gemfile:
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
gem 'micro_migrations'
|
14
|
+
# or this if you want to use from master
|
15
|
+
# gem 'micro_migrations', github: 'svenfuchs/micro_migrations'
|
16
|
+
```
|
17
|
+
|
18
|
+
And then execute:
|
19
|
+
|
20
|
+
```bash
|
21
|
+
$ bundle
|
22
|
+
```
|
23
|
+
|
24
|
+
Or install it yourself as:
|
25
|
+
|
26
|
+
```bash
|
27
|
+
$ gem install micro_migrations
|
28
|
+
```
|
29
|
+
|
30
|
+
## Usage
|
31
|
+
|
32
|
+
Just require it in your `Rakefile`:
|
33
|
+
|
34
|
+
```ruby
|
35
|
+
require 'micro_migrations'
|
36
|
+
```
|
37
|
+
|
38
|
+
## Contributing
|
39
|
+
|
40
|
+
1. Fork it
|
41
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
42
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
43
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
44
|
+
5. Create new Pull Request
|
45
|
+
|
46
|
+
## License
|
47
|
+
|
48
|
+
See the [LICENSE](https://github.com/svenfuchs/micro_migrations/blob/master/LICENSE).
|
data/lib/micro_migrations.rb
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
require 'rails'
|
2
2
|
require 'active_record/railtie'
|
3
3
|
|
4
|
-
Bundler.require
|
5
|
-
|
6
4
|
app = Class.new(Rails::Application)
|
7
5
|
app.config.active_support.deprecation = :log
|
8
6
|
app.load_tasks
|
@@ -10,3 +8,7 @@ app.load_tasks
|
|
10
8
|
Rake::Task['environment'].enhance do
|
11
9
|
app.initialize!
|
12
10
|
end
|
11
|
+
|
12
|
+
%w(about doc:app log:clear middleware notes notes:custom rails:template rails:update routes secret stats time:zones:all tmp:clear tmp:create).each do |task|
|
13
|
+
Rake::Task[task].clear
|
14
|
+
end
|
metadata
CHANGED
@@ -1,15 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: micro_migrations
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sven Fuchs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
12
|
-
dependencies:
|
11
|
+
date: 2013-12-22 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activerecord
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: railties
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
13
41
|
description: Minimal ActiveRecord standalone migrations.
|
14
42
|
email:
|
15
43
|
- me@svenfuchs.com
|
@@ -23,7 +51,7 @@ files:
|
|
23
51
|
- LICENSE
|
24
52
|
- Rakefile
|
25
53
|
- README.md
|
26
|
-
homepage: https://github.com
|
54
|
+
homepage: https://github.com/svenfuchs/micro_migrations
|
27
55
|
licenses: []
|
28
56
|
metadata: {}
|
29
57
|
post_install_message:
|
@@ -47,3 +75,4 @@ signing_key:
|
|
47
75
|
specification_version: 4
|
48
76
|
summary: Minimal ActiveRecord standalone migrations
|
49
77
|
test_files: []
|
78
|
+
has_rdoc:
|