platanus 0.0.2 → 0.0.3
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.
- data/.rspec +1 -0
- data/Gemfile +1 -2
- data/lib/platanus/stacked.rb +1 -1
- data/lib/platanus/version.rb +1 -1
- data/spec/canned_spec.rb +5 -0
- data/spec/spec_helper.rb +20 -0
- metadata +7 -2
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--format documentation --color --debug --fail-fast
|
data/Gemfile
CHANGED
data/lib/platanus/stacked.rb
CHANGED
@@ -48,7 +48,7 @@ module Platanus
|
|
48
48
|
end
|
49
49
|
|
50
50
|
# Save model and push attribute, cache last stacked attribute.
|
51
|
-
self.save! if _options
|
51
|
+
self.save! if _options.fetch(:autosave, true) and (self.new_record? or self.changed?)
|
52
52
|
raise ActiveRecord::RecordInvalid.new(obj) unless self.send(tname).send('<<',obj)
|
53
53
|
@_stacked_last = obj
|
54
54
|
|
data/lib/platanus/version.rb
CHANGED
data/spec/canned_spec.rb
ADDED
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# This file was generated by the `rspec --init` command. Conventionally, all
|
2
|
+
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
3
|
+
# Require this file using `require "spec_helper"` to ensure that it is only
|
4
|
+
# loaded once.
|
5
|
+
#
|
6
|
+
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
7
|
+
|
8
|
+
require 'platanus'
|
9
|
+
|
10
|
+
RSpec.configure do |config|
|
11
|
+
config.treat_symbols_as_metadata_keys_with_true_values = true
|
12
|
+
config.run_all_when_everything_filtered = true
|
13
|
+
config.filter_run :focus
|
14
|
+
|
15
|
+
# Run specs in random order to surface order dependencies. If you find an
|
16
|
+
# order dependency and want to debug it, you can fix the order by providing
|
17
|
+
# the seed, which is printed after each run.
|
18
|
+
# --seed 1234
|
19
|
+
config.order = 'random'
|
20
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: platanus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -19,6 +19,7 @@ extensions: []
|
|
19
19
|
extra_rdoc_files: []
|
20
20
|
files:
|
21
21
|
- .gitignore
|
22
|
+
- .rspec
|
22
23
|
- Gemfile
|
23
24
|
- LICENSE
|
24
25
|
- README.md
|
@@ -37,6 +38,8 @@ files:
|
|
37
38
|
- lib/platanus/traceable.rb
|
38
39
|
- lib/platanus/version.rb
|
39
40
|
- platanus.gemspec
|
41
|
+
- spec/canned_spec.rb
|
42
|
+
- spec/spec_helper.rb
|
40
43
|
homepage: http://www.platan.us
|
41
44
|
licenses: []
|
42
45
|
post_install_message:
|
@@ -62,4 +65,6 @@ rubygems_version: 1.8.23
|
|
62
65
|
signing_key:
|
63
66
|
specification_version: 3
|
64
67
|
summary: This gem contains various ruby classes used by Platanus in our rails proyects
|
65
|
-
test_files:
|
68
|
+
test_files:
|
69
|
+
- spec/canned_spec.rb
|
70
|
+
- spec/spec_helper.rb
|