opium 1.0.0 → 1.0.1

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: ab3129797b81cdb23362431fddf4ee5d6deaf1d9
4
- data.tar.gz: a6f8105866f4101f9f4eb2f0661696777846741b
3
+ metadata.gz: 0b53cd943726ac294d5bb3ea61bb30d61498e16d
4
+ data.tar.gz: ad18f5457d8bef4c60de5d756b84cc4286b56c2c
5
5
  SHA512:
6
- metadata.gz: 0047e98730f67c24d819a704c9a22f1f89e8f686bf2c7be9dbc4c1a7eadbeae8f63e897a315dfff72e3c58bfd0db07f08a5977b395f43b1a79f5498cf9de7808
7
- data.tar.gz: 7f34b3d49b52392291584f1b9c1e33b9be7b6273d4a2aca50234bb05a1f70ebe44113e7944629ab145f93a08d03923caa245134f543022e9cb9d25861656f6a1
6
+ metadata.gz: 48d6e38c6333a34a8f1670f3b8e66106239cb7d1a9b9c1018507f92f3872f05c76af2a8e5a8c759013829cf5166654c523263886639cdaba1a2d5ea03e05cd86
7
+ data.tar.gz: cb0510ae5708a304b9882aa7d673a177c75d54a3e7ec3d613e4d3a99f8b1bcdf15b98cdabb988092f34db49863f4f9e3181cada967a4e5abff90ea91322753a6
@@ -4,7 +4,12 @@ module Rails
4
4
  module Generators
5
5
  class GeneratedAttribute
6
6
  def type_class
7
- type.to_s.camelcase
7
+ case type.to_s
8
+ when 'datetime'
9
+ 'DateTime'
10
+ else
11
+ type.to_s.camelcase
12
+ end
8
13
  end
9
14
  end
10
15
  end
@@ -10,7 +10,7 @@ development:
10
10
  master_key: PARSE-MASTER-KEY
11
11
 
12
12
  # Any communications done with parse will either be (true) displayed or (false) silenced
13
- log_network_responses: true
13
+ log_network_responses: false
14
14
 
15
15
  test:
16
16
  app_id: PARSE-TEST-APP-ID
@@ -14,6 +14,8 @@ module Opium
14
14
 
15
15
  attr_reader :model_name
16
16
 
17
+ delegate :to_partial_path, to: :model
18
+
17
19
  def model
18
20
  models[model_name] ||= model_name.constantize
19
21
  end
data/lib/opium/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Opium
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -19,6 +19,8 @@ describe Opium do
19
19
  end
20
20
 
21
21
  describe ':reset' do
22
+ after { described_class.config.log_network_responses = false }
23
+
22
24
  it 'should put all changed settings back to their defaults' do
23
25
  expect { described_class.config.log_network_responses = true }.to change( described_class.config, :log_network_responses ).from( false ).to( true )
24
26
  described_class.reset
@@ -38,6 +38,7 @@ describe Opium::Model::Criteria do
38
38
  it { is_expected.to respond_to( :each ) }
39
39
  it { is_expected.to respond_to( :to_a ) }
40
40
  it { is_expected.to respond_to( :count, :total_count ) }
41
+ it { is_expected.to respond_to( :to_partial_path ) }
41
42
 
42
43
  describe '#chain' do
43
44
  it 'returns a copy of the object' do
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.0.0
4
+ version: 1.0.1
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-03-26 00:00:00.000000000 Z
11
+ date: 2015-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler