keepr 0.3.1 → 0.3.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
2
  SHA1:
3
- metadata.gz: 6939306095b85a2adcb973912222080ca16a6819
4
- data.tar.gz: 0300cc5a158f99c95f9ce0685500cb3a4690c5d7
3
+ metadata.gz: c91b1ad75caddcdc40fea241881c31b7f6c4da1d
4
+ data.tar.gz: 11643a043c97b47c09d9623992fd70d2cbaa607a
5
5
  SHA512:
6
- metadata.gz: 1ddbc32cc11e4005ba21ddc8fc95fdd2617d199d559c03ea0bf26c6ee5e319ff9e5a19518bee0365e415c564595b26ef69c7ecf9fb96abb7bc2fe16250f8898b
7
- data.tar.gz: a064b44c2a03afc6ff936e081d81b20ce427089a78aa5dd75006e3e8b3b9cc8a60d4c9e507a443eeecf4e607a1877a9645ea6489d83da0776c1a34ed1ab77da0
6
+ metadata.gz: a207f1ebce4fe8bb4fa594ad73bda3035c9da0d82d05b7258e681b8c53478989c2b8155c3495bb7a9ccbf4345ac2a29b1a51762ab907cd248c1811f42ec74284
7
+ data.tar.gz: dd41650bac870b4173f9cfe460ab187e42216bbd206bc36563032c3d75b9f550e3871bf842945c94781b0df73d3ccd697a4fd18b5df0bd8f41ad6378a7ef8d52
data/.travis.yml CHANGED
@@ -2,16 +2,25 @@ language: ruby
2
2
  rvm:
3
3
  - 2.0.0
4
4
  - 2.1.10
5
- - 2.2.5
6
- - 2.3.1
5
+ - 2.2.7
6
+ - 2.3.3
7
+ - 2.4.1
7
8
  gemfile:
8
9
  - ci/Gemfile-rails-4-1
9
10
  - ci/Gemfile-rails-4-2
10
11
  - ci/Gemfile-rails-5-0
12
+ - ci/Gemfile-rails-5-1
11
13
  matrix:
12
14
  exclude:
15
+ - rvm: 2.0.0
16
+ gemfile: ci/Gemfile-rails-5-1
17
+ - rvm: 2.1.10
18
+ gemfile: ci/Gemfile-rails-5-1
13
19
  - rvm: 2.0.0
14
20
  gemfile: ci/Gemfile-rails-5-0
15
21
  - rvm: 2.1.10
16
22
  gemfile: ci/Gemfile-rails-5-0
23
+ - rvm: 2.4.1
24
+ gemfile: ci/Gemfile-rails-4-1
17
25
  before_install: gem update bundler
26
+ sudo: false
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2013-2016 Georg Ledermann
1
+ Copyright (c) 2013-2017 Georg Ledermann
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -20,7 +20,7 @@ This Ruby gem provides a double entry accounting system for use in any Rails app
20
20
  ## Dependencies
21
21
 
22
22
  * Ruby 2.0.0 or later
23
- * Rails 4.1 or newer (including Rails 5)
23
+ * Rails 4.1 or newer (including Rails 5.x)
24
24
 
25
25
 
26
26
  ## Installation
@@ -64,4 +64,4 @@ TODO: Write usage instructions here
64
64
  * https://github.com/bigfleet/accountable
65
65
 
66
66
 
67
- Copyright (c) 2013-2016 [Georg Ledermann](http://www.georg-ledermann.de), released under the MIT license
67
+ Copyright (c) 2013-2017 [Georg Ledermann](http://www.georg-ledermann.de), released under the MIT license
data/ci/Gemfile-rails-4-1 CHANGED
@@ -1,6 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'activerecord', '~> 4.1.15'
3
+ gem 'activerecord', '~> 4.1.16'
4
4
  gem 'ancestry'
5
5
  gem 'sqlite3'
6
6
  gem 'rake'
data/ci/Gemfile-rails-4-2 CHANGED
@@ -1,6 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'activerecord', '~> 4.2.6'
3
+ gem 'activerecord', '~> 4.2.8'
4
4
  gem 'ancestry'
5
5
  gem 'sqlite3'
6
6
  gem 'rake'
data/ci/Gemfile-rails-5-0 CHANGED
@@ -1,6 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gem 'activerecord', '~> 5.0.0'
3
+ gem 'activerecord', '~> 5.0.2'
4
4
  gem 'ancestry'
5
5
  gem 'sqlite3'
6
6
  gem 'rake'
@@ -0,0 +1,12 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'activerecord', '~> 5.1.0'
4
+ gem 'ancestry'
5
+ gem 'sqlite3'
6
+ gem 'rake'
7
+ gem 'rspec'
8
+ gem 'simplecov'
9
+ gem 'coveralls'
10
+ gem 'database_cleaner'
11
+ gem 'factory_girl'
12
+ gem 'datev'
@@ -1,4 +1,4 @@
1
- class KeeprMigration < ActiveRecord::Migration
1
+ class KeeprMigration < Keepr::MIGRATION_BASE_CLASS
2
2
  def self.up
3
3
  create_table Keepr::Group, force: true do |t|
4
4
  t.integer :target, :null => false
data/lib/keepr.rb CHANGED
@@ -17,3 +17,9 @@ require 'keepr/active_record_extension'
17
17
  class ActiveRecord::Base
18
18
  include Keepr::ActiveRecordExtension
19
19
  end
20
+
21
+ Keepr::MIGRATION_BASE_CLASS = if ActiveRecord::VERSION::MAJOR >= 5
22
+ ActiveRecord::Migration[5.0]
23
+ else
24
+ ActiveRecord::Migration
25
+ end
data/lib/keepr/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Keepr
2
- VERSION = '0.3.1'
2
+ VERSION = '0.3.2'
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -10,6 +10,11 @@ SimpleCov.start do
10
10
  end
11
11
 
12
12
  require 'active_record'
13
+ puts "Testing with ActiveRecord #{ActiveRecord::VERSION::STRING}"
14
+ ActiveRecord::Base.configurations = YAML.load_file(File.expand_path('database.yml', File.dirname(__FILE__)))
15
+ ActiveRecord::Base.establish_connection(:sqlite)
16
+ ActiveRecord::Migration.verbose = false
17
+
13
18
  require 'database_cleaner'
14
19
  require 'keepr'
15
20
  require 'generators/keepr/migration/templates/migration.rb'
@@ -59,7 +64,3 @@ RSpec.configure do |config|
59
64
  end
60
65
  end
61
66
 
62
- puts "Testing with ActiveRecord #{ActiveRecord::VERSION::STRING}"
63
- ActiveRecord::Base.configurations = YAML.load_file(File.expand_path('database.yml', File.dirname(__FILE__)))
64
- ActiveRecord::Base.establish_connection(:sqlite)
65
- ActiveRecord::Migration.verbose = false
@@ -1,4 +1,4 @@
1
- class SpecMigration < ActiveRecord::Migration
1
+ class SpecMigration < Keepr::MIGRATION_BASE_CLASS
2
2
  def self.up
3
3
  create_table Contact, force: true do |t|
4
4
  t.string :name
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: keepr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Georg Ledermann
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-05 00:00:00.000000000 Z
11
+ date: 2017-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -179,6 +179,7 @@ files:
179
179
  - ci/Gemfile-rails-4-1
180
180
  - ci/Gemfile-rails-4-2
181
181
  - ci/Gemfile-rails-5-0
182
+ - ci/Gemfile-rails-5-1
182
183
  - keepr.gemspec
183
184
  - lib/generators/keepr/migration/migration_generator.rb
184
185
  - lib/generators/keepr/migration/templates/migration.rb
@@ -239,7 +240,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
239
240
  version: '0'
240
241
  requirements: []
241
242
  rubyforge_project:
242
- rubygems_version: 2.6.6
243
+ rubygems_version: 2.6.11
243
244
  signing_key:
244
245
  specification_version: 4
245
246
  summary: Some basic ActiveRecord models to build a double entry bookkeeping application