opium 1.1.1 → 1.1.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/CHANGELOG.md +8 -0
- data/lib/generators/opium/config_generator.rb +2 -2
- data/lib/generators/opium/model_generator.rb +2 -2
- data/lib/opium/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 24d5bfa6fcf248569ff9abb45afcf381e4c1532b
|
|
4
|
+
data.tar.gz: f04d64f447c9dbd52d750a639ec987515f60c038
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0595bfe6712507e21bc46a01ffe06cd0b5916f37a092e08f09f2e4a2eee6d64a1afbccd17fe0747de49e3b4b2c2b4dbcc25ea90de9ed9380b070d0f674b242b1
|
|
7
|
+
data.tar.gz: 7cf7f52dd9d4e53e4976eb9892d357550f032f243d07fcc7a1272c0ff2cd73538b6f4e27c0263ae71f81f825c3dd9b30fbb129e6e401689ce950281142202c0f
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## 1.1.2
|
|
2
|
+
### Resolved Issues
|
|
3
|
+
- #34: Rails generators now correctly reference `::File`, rather than `File`, which, in context, evaluates to `Opium::File`.
|
|
4
|
+
|
|
5
|
+
## 1.1.1
|
|
6
|
+
### Resolved Issues
|
|
7
|
+
- Fixed bug where Rails was unable to load `Opium::Model::Connectable` in `Opium::File`.
|
|
8
|
+
|
|
1
9
|
## 1.1.0
|
|
2
10
|
|
|
3
11
|
### New Features
|
|
@@ -3,12 +3,12 @@ require 'rails/generators'
|
|
|
3
3
|
module Opium
|
|
4
4
|
module Generators
|
|
5
5
|
class ConfigGenerator < ::Rails::Generators::Base
|
|
6
|
-
source_root File.expand_path( "../templates/", __FILE__ )
|
|
6
|
+
source_root ::File.expand_path( "../templates/", __FILE__ )
|
|
7
7
|
|
|
8
8
|
desc "Creates an Opium configuration file at config/opium.yml"
|
|
9
9
|
|
|
10
10
|
def create_config_file
|
|
11
|
-
copy_file 'config.yml', File.join( 'config', 'opium.yml' )
|
|
11
|
+
copy_file 'config.yml', ::File.join( 'config', 'opium.yml' )
|
|
12
12
|
end
|
|
13
13
|
end
|
|
14
14
|
end
|
|
@@ -20,7 +20,7 @@ end
|
|
|
20
20
|
module Opium
|
|
21
21
|
module Generators
|
|
22
22
|
class ModelGenerator < ::Rails::Generators::NamedBase
|
|
23
|
-
source_root File.expand_path( "../templates/", __FILE__ )
|
|
23
|
+
source_root ::File.expand_path( "../templates/", __FILE__ )
|
|
24
24
|
|
|
25
25
|
desc "Creates an Opium model"
|
|
26
26
|
|
|
@@ -31,7 +31,7 @@ module Opium
|
|
|
31
31
|
class_option :parent, type: :string, desc: "The parent model for the generated model when using STI"
|
|
32
32
|
|
|
33
33
|
def create_model_file
|
|
34
|
-
template "model.rb", File.join( "app/models", class_path, "#{file_name}.rb" )
|
|
34
|
+
template "model.rb", ::File.join( "app/models", class_path, "#{file_name}.rb" )
|
|
35
35
|
end
|
|
36
36
|
|
|
37
37
|
hook_for :test_framework
|
data/lib/opium/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: opium
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Joshua Bowers
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-04-
|
|
11
|
+
date: 2015-04-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|