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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f4e05be85691394fbc407f55cf71f08574537f27
4
- data.tar.gz: 73afd6f649f08e05c5971b4de14171326c9fd17b
3
+ metadata.gz: 5dd3ccb8e1684da9fef67f076dce29a3e4450365
4
+ data.tar.gz: 689a58ce7bf7055f7329bd5c2d990980b13934ad
5
5
  SHA512:
6
- metadata.gz: 4a24bfa834add65066cb2723012c8ff31e3e2d5b68fbc69fbadc0d675405871cee264415a50299649729f5ca1d9230d0a6f61e92200099cc3c21bb37751b585b
7
- data.tar.gz: f4589173a2a0a924aeaf8835cf2f4e806a3bd2cc7db46c48e8f49f6f97c3b8e9a700c02ecca16164dc298c19585525ed668d7d31945b8d749f25f1bab33ccfdf
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)
@@ -1,5 +1,5 @@
1
1
  module ActiveFacts
2
2
  module API
3
- VERSION = "1.8.4"
3
+ VERSION = "1.8.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activefacts-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.4
4
+ version: 1.8.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Clifford Heath