active_currency 1.0.1 → 1.0.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
- SHA1:
3
- metadata.gz: e714ea208f9bd8ebded58b96bde8497a9f9c47c2
4
- data.tar.gz: fdd79e4b7ed274966cc932f7f4ba8536040ba02c
2
+ SHA256:
3
+ metadata.gz: bb620b38733eb426ea053d9e540fcd1d94ddbf636f93b377e9295b8bd6ca0d41
4
+ data.tar.gz: c6f2aa32d2ddee861583986f013c0864d7f9846691b05daecf391cc9eb89a225
5
5
  SHA512:
6
- metadata.gz: ef833fcd22cf76b2511ff68a4930d1026e3687c129674abb6f96a79b2fdd64899f5c962d9fe582c911f10835c6d40363199a3876e0669e48d17c69982a734864
7
- data.tar.gz: f2d8a04600e685729c538a47323c43504a7ad939ade1b425c1e940e5acdd9d09d9ad639dbbfa0b7dcd16e3a71945a0799314f1e02cdc6c4ed9951cfba6b74a4f
6
+ metadata.gz: 2c10136f43d38a1c998a302261d6c388cf9a491f46de97cf723ed13c112287e1a4c1af59e152d112489c914f16beb95d6208d5e54f62b06787242c8cb74b3c96
7
+ data.tar.gz: 744a5f9343e62b907eb5dc05a740728a41963949b60ca762d99e78ba340d832e0124f2f9ed9165d52528d1af329c75e7a87c8564c65ea991f4822e899d41592f
data/README.md CHANGED
@@ -10,11 +10,11 @@ with the `money-rails` gem.
10
10
  Storing the current currency rates in the database using ActiveCurrency
11
11
  provides the following advantages:
12
12
 
13
- - Lets you find out what the currency rate you used in your application was
14
- at any given time.
13
+ - Lets you query for the currency rate you actually used in your application at
14
+ any given time.
15
15
  - Does not need to call an API to get the rates when starting or restarting
16
16
  your web server.
17
- - Choose how often you want to check for a currency (daily for example).
17
+ - Choose how often you want to update the currency rates (daily for example).
18
18
  - Your users do not suffer the cost of making calls to the bank rates API.
19
19
  - Your app does not go down when the bank rates API does.
20
20
 
@@ -24,7 +24,8 @@ cache when getting the current rate in order to save on database queries.
24
24
  ## Usage
25
25
 
26
26
  Store the current rate regularly by calling in a scheduled job (using something
27
- like `sidekiq-scheduler` or `whenever`) with the currencies you want to store:
27
+ like `sidekiq-scheduler`, `whenever`, or `active_scheduler`) with the currencies
28
+ you want to store:
28
29
 
29
30
  ```rb
30
31
  ActiveCurrency::AddRates.call(%w[EUR USD])
@@ -62,7 +63,7 @@ MoneyRails.configure do |config|
62
63
  end
63
64
  ```
64
65
 
65
- Then call `bundle exec rake db:migrate` to create the table that holds
66
+ Then call `bin/rake db:migrate` to create the table that holds
66
67
  the currency rates and fill it for the first time.
67
68
 
68
69
  ## Tests
@@ -92,13 +93,30 @@ Please file issues and pull requests
92
93
  Install:
93
94
 
94
95
  ```sh
95
- BUNDLE_GEMFILE=Gemfile-rails4.2 bundle install
96
+ BUNDLE_GEMFILE=Gemfile-rails5.2 bundle install
96
97
  ```
97
98
 
98
99
  Launch specs and linters:
99
100
 
100
101
  ```sh
101
- BUNDLE_GEMFILE=Gemfile-rails4.2 bundle exec rake
102
+ BUNDLE_GEMFILE=Gemfile-rails5.2 bin/rake
103
+ ```
104
+
105
+ ## Release
106
+
107
+ Update `CHANGELOG.md`, update version in `lib/active_currency/version.rb`.
108
+
109
+ Then:
110
+
111
+ ```sh
112
+ BUNDLE_GEMFILE=Gemfile-rails3.2 bundle install
113
+ BUNDLE_GEMFILE=Gemfile-rails4.2 bundle install
114
+ BUNDLE_GEMFILE=Gemfile-rails5.2 bundle install
115
+ BUNDLE_GEMFILE=Gemfile-rails6.0 bundle install
116
+
117
+ git add CHANGELOG.md lib/active_currency/version.rb Gemfile-rails*.lock
118
+ git commit -m 'New version'
119
+ bin/rake release
102
120
  ```
103
121
 
104
122
  ## License
@@ -2,8 +2,8 @@
2
2
 
3
3
  module ActiveCurrency
4
4
  # Helps support previous version of Rails in migrations.
5
- if Rails.version > '4.1'
6
- class Migration < ActiveRecord::Migration[4.2]; end
5
+ if Rails.version > '5.0'
6
+ class Migration < ActiveRecord::Migration[5.0]; end
7
7
  else
8
8
  class Migration < ActiveRecord::Migration; end
9
9
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveCurrency
4
- VERSION = '1.0.1'
4
+ VERSION = '1.0.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_currency
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sunny Ripert
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-01 00:00:00.000000000 Z
11
+ date: 2019-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -175,8 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
175
175
  - !ruby/object:Gem::Version
176
176
  version: '0'
177
177
  requirements: []
178
- rubyforge_project:
179
- rubygems_version: 2.5.2.3
178
+ rubygems_version: 3.0.3
180
179
  signing_key:
181
180
  specification_version: 4
182
181
  summary: Rails plugin to store your currency regularly