activefacts-api 1.8.4 → 1.8.5
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/Rakefile +17 -0
- data/lib/activefacts/api/role_values.rb +1 -1
- data/lib/activefacts/api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5dd3ccb8e1684da9fef67f076dce29a3e4450365
|
4
|
+
data.tar.gz: 689a58ce7bf7055f7329bd5c2d990980b13934ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b483b542cd6984bca09d2aa6866fc06259fb0442e2062112cd035dd784baa09051907d72f010c374fcfd1f3013eb2d764b2c926c517fb385f026c5db114e3375
|
7
|
+
data.tar.gz: a652aeded7b2ab278f6829cad84320e7d9169c28c76a588538106e962eb79ab5286bbda6907482275c3084e313e22320eb23c1896a1de6d292d33a907f47a0c1
|
data/Rakefile
CHANGED
@@ -6,6 +6,23 @@ RSpec::Core::RakeTask.new(:spec)
|
|
6
6
|
|
7
7
|
task :default => :spec
|
8
8
|
|
9
|
+
desc "Bump gem version patch number"
|
10
|
+
task :bump do
|
11
|
+
path = File.expand_path('../lib/activefacts/api/version.rb', __FILE__)
|
12
|
+
lines = File.open(path) do |fp| fp.readlines; end
|
13
|
+
File.open(path, "w") do |fp|
|
14
|
+
fp.write(
|
15
|
+
lines.map do |line|
|
16
|
+
line.gsub(/(VERSION *= *"[0-9.]*\.)([0-9]+)"\n/) do
|
17
|
+
version = "#{$1}#{$2.to_i+1}"
|
18
|
+
puts "Version bumped to #{version}\""
|
19
|
+
version+"\"\n"
|
20
|
+
end
|
21
|
+
end*''
|
22
|
+
)
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
9
26
|
desc "Run Rspec tests"
|
10
27
|
RSpec::Core::RakeTask.new(:spec) do |t|
|
11
28
|
t.rspec_opts = %w{-f d}
|
@@ -134,7 +134,7 @@ module ActiveFacts
|
|
134
134
|
def_single_delegator :@a, :select, 1
|
135
135
|
def_single_delegator :@a, :reject, 1
|
136
136
|
def_single_delegator :@a, :size
|
137
|
-
def_single_delegator :@a, :sort_by, 1
|
137
|
+
def_single_delegator :@a, :sort_by, 1, -1
|
138
138
|
def_single_delegator :@a, :to_a
|
139
139
|
def_single_delegator :@a, :-
|
140
140
|
# These delegators allow a negative arity in RSpec because the tests test it (to make sure the code doesn't pass too many args)
|