frankly 0.1.5 → 0.1.6

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: bf26a26c6877201ee53782dd6294499461f37a60
4
- data.tar.gz: b9036a44e219341985c9542c2bafb65271d49d14
2
+ SHA256:
3
+ metadata.gz: 5f8bd4c6d54dc267c2c76c3acda425e4d9e43e7278cdacd11e35c379723a0ce2
4
+ data.tar.gz: 9a214222eda89b2edd17e1650a1b2213fba965a337cc2fa09e7991250d5afa2b
5
5
  SHA512:
6
- metadata.gz: fc7b47e404cf82e681a95c82395887ce6d0f29f1036ae66e5e10c17116443b0516ef3f3287ac2776a8ed324ae010700c6856394af44d7bc47fabdaef6b16ac39
7
- data.tar.gz: 224fd2a437d33300bfca87ee67b45bd0f0eef7d2b602fe2acf1c1532afd87983beabf56e29754de65e018059d20752fe52b0c3b5019de515c78f6961f48740a0
6
+ metadata.gz: d9a73f8401b3064f1d5be7cbb23f6d006e1691e177aca6af482325beaaacdc9c0802dce722d32ba9a6d8083d448a3c114c8821a23c54703b407be9929f42753d
7
+ data.tar.gz: ed096de42c3d010a099dfd636897c313d4d47624a93a0549f9c3296dd6a393ee338b4c8963e4c06b63c4afe824251918fd83326179db9ba48b311c4109119d96
@@ -1,3 +1,3 @@
1
1
  module Frankly
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
data/templates/Rakefile CHANGED
@@ -102,8 +102,12 @@ namespace :db do
102
102
  task :migrate do
103
103
  ActiveRecord::Migrator.migrations_paths << File.dirname(__FILE__) + 'db/migrate'
104
104
  ActiveRecord::Migration.verbose = ENV["VERBOSE"] ? ENV["VERBOSE"] == "true" : true
105
- ActiveRecord::Migrator.migrate(ActiveRecord::Migrator.migrations_paths, ENV["VERSION"] ? ENV["VERSION"].to_i : nil) do |migration|
106
- ENV["SCOPE"].blank? || (ENV["SCOPE"] == migration.scope)
105
+ if ActiveRecord.version.release() < Gem::Version.new('5.2.0')
106
+ ActiveRecord::Migrator.migrate(ActiveRecord::Migrator.migrations_paths, ENV["VERSION"] ? ENV["VERSION"].to_i : nil) do |migration|
107
+ ENV["SCOPE"].blank? || (ENV["SCOPE"] == migration.scope)
108
+ end
109
+ else
110
+ ActiveRecord::MigrationContext.new(ActiveRecord::Migrator.migrations_paths).migrate
107
111
  end
108
112
  end
109
113
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: frankly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken Rettberg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-29 00:00:00.000000000 Z
11
+ date: 2019-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -159,7 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
159
159
  version: '0'
160
160
  requirements: []
161
161
  rubyforge_project:
162
- rubygems_version: 2.6.13
162
+ rubygems_version: 2.7.3
163
163
  signing_key:
164
164
  specification_version: 4
165
165
  summary: An opinionated sinatra skeleton with Rake tasks, rspec, postgres, and more!