opium 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f4ef856596fcb624351c9bf5ba19768ae21aa6e3
4
- data.tar.gz: 72a5f5a981e88e0f7a57ec931ef462c302b4a703
3
+ metadata.gz: 24d5bfa6fcf248569ff9abb45afcf381e4c1532b
4
+ data.tar.gz: f04d64f447c9dbd52d750a639ec987515f60c038
5
5
  SHA512:
6
- metadata.gz: bfd3585a5021b93de5348031677eb95d514e917ad59bbf5f1a59ce14c03740739888b9998b3d054e62fb8d1364cf20a5618c7235f5eb6e279079a37ed6e8d3c4
7
- data.tar.gz: add3eadc71fceb115c33192dd2b55d5563d3b1a2b68394b17d4d1bccb784b771f6861adcc641201bcaed99a0970d03b1b0b6aca167d8b309108b1b1d64171c66
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
@@ -1,3 +1,3 @@
1
1
  module Opium
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
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.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-14 00:00:00.000000000 Z
11
+ date: 2015-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler