attr_default 0.7.2 → 0.8.0.pre.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
  SHA256:
3
- metadata.gz: 4f9eb6fdccf323bd0b6c51b9eac4a0eac70c4a37550c1da8104308bbd19e3b6c
4
- data.tar.gz: 1ee1c695376bf0fe1a305b7fe9cca1876a7c3d672b135df75aff45d742ffb2d4
3
+ metadata.gz: 1a83611820395e65d324e2de3cfae1a95124537c7834e56d4623b2de610d8b62
4
+ data.tar.gz: d3430d3620246847958c5afeef19d7d3bbab5f92a50a82a948a1ed76ad61a303
5
5
  SHA512:
6
- metadata.gz: f3526d58839e8db58851f82e850be813664453cfad5fbe2d3390751e82351cb628ddcfec07581be58c2123c37e0f7e9f728c8adbd6d1d682b2dda4abbffc3b9b
7
- data.tar.gz: ff66503067536f453837c218c9ddcf6e5ca54ff733e866c9127e8995cc41d60ae3c8907eed324f4cddac17c74de204a29d1ddc6b63e8e1962b1a62f7b9b5ac2b
6
+ metadata.gz: a2a2634faeed254bbefef3fb209a20b6db051e17ec37df3e99ba9480c09676e7983589604c1baab351bdcac57314f3ff590b15e85d9c4bf6623cab89d9bfd673
7
+ data.tar.gz: 884daa90fbb8b83f32ac806a50e5ab6dcf21b541064f26acea29e283ec9ddc81d788901df5dd095e506ff82822be7fcfa849ca8b5be8c9e900e4b64ee61997bb
data/Gemfile CHANGED
@@ -1,14 +1,14 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source 'https://rubygems.org'
2
4
 
3
5
  gemspec
4
6
 
5
- gem 'rails', '~> 4.2.11', git: 'git@github.com:Invoca/rails', ref: '987dc1074da6abc43ed6bdbae834dc6b85024bbb'
6
-
7
7
  group :development do
8
8
  gem 'activesupport', '~>4'
9
9
  gem 'hobofields', '0.9.103'
10
10
  gem 'pry'
11
- gem 'rake'
11
+ gem 'rake', '~>0.9'
12
12
  gem 'sqlite3'
13
13
 
14
14
  gem 'minitest'
data/Gemfile.lock CHANGED
@@ -1,7 +1,10 @@
1
- GIT
2
- remote: git@github.com:Invoca/rails
3
- revision: 987dc1074da6abc43ed6bdbae834dc6b85024bbb
4
- ref: 987dc1074da6abc43ed6bdbae834dc6b85024bbb
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ attr_default (0.8.0.pre.2)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
5
8
  specs:
6
9
  actionmailer (4.2.11.1)
7
10
  actionpack (= 4.2.11.1)
@@ -37,37 +40,12 @@ GIT
37
40
  minitest (~> 5.1)
38
41
  thread_safe (~> 0.3, >= 0.3.4)
39
42
  tzinfo (~> 1.1)
40
- rails (4.2.11.1)
41
- actionmailer (= 4.2.11.1)
42
- actionpack (= 4.2.11.1)
43
- actionview (= 4.2.11.1)
44
- activejob (= 4.2.11.1)
45
- activemodel (= 4.2.11.1)
46
- activerecord (= 4.2.11.1)
47
- activesupport (= 4.2.11.1)
48
- bundler (>= 1.3.0, < 2.0)
49
- railties (= 4.2.11.1)
50
- sprockets-rails
51
- railties (4.2.11.1)
52
- actionpack (= 4.2.11.1)
53
- activesupport (= 4.2.11.1)
54
- rake (>= 0.8.7)
55
- thor (>= 0.18.1, < 2.0)
56
-
57
- PATH
58
- remote: .
59
- specs:
60
- attr_default (0.7.2)
61
-
62
- GEM
63
- remote: https://rubygems.org/
64
- specs:
65
43
  ansi (1.5.0)
66
44
  arel (6.0.4)
67
45
  builder (3.2.3)
68
46
  coderay (1.1.1)
69
- concurrent-ruby (1.1.5)
70
- crass (1.0.5)
47
+ concurrent-ruby (1.1.6)
48
+ crass (1.0.6)
71
49
  erubis (2.7.0)
72
50
  globalid (0.4.2)
73
51
  activesupport (>= 4.2.0)
@@ -100,6 +78,17 @@ GEM
100
78
  rack (1.6.13)
101
79
  rack-test (0.6.3)
102
80
  rack (>= 1.0)
81
+ rails (4.2.11.1)
82
+ actionmailer (= 4.2.11.1)
83
+ actionpack (= 4.2.11.1)
84
+ actionview (= 4.2.11.1)
85
+ activejob (= 4.2.11.1)
86
+ activemodel (= 4.2.11.1)
87
+ activerecord (= 4.2.11.1)
88
+ activesupport (= 4.2.11.1)
89
+ bundler (>= 1.3.0, < 2.0)
90
+ railties (= 4.2.11.1)
91
+ sprockets-rails
103
92
  rails-deprecated_sanitizer (1.0.3)
104
93
  activesupport (>= 4.2.0.alpha)
105
94
  rails-dom-testing (1.0.9)
@@ -108,7 +97,12 @@ GEM
108
97
  rails-deprecated_sanitizer (>= 1.0.1)
109
98
  rails-html-sanitizer (1.3.0)
110
99
  loofah (~> 2.3)
111
- rake (13.0.1)
100
+ railties (4.2.11.1)
101
+ actionpack (= 4.2.11.1)
102
+ activesupport (= 4.2.11.1)
103
+ rake (>= 0.8.7)
104
+ thor (>= 0.18.1, < 2.0)
105
+ rake (0.9.6)
112
106
  ruby-progressbar (1.10.1)
113
107
  slop (3.6.0)
114
108
  sprockets (4.0.0)
@@ -119,9 +113,9 @@ GEM
119
113
  activesupport (>= 4.0)
120
114
  sprockets (>= 3.0.0)
121
115
  sqlite3 (1.3.13)
122
- thor (0.19.1)
116
+ thor (1.0.1)
123
117
  thread_safe (0.3.6)
124
- tzinfo (1.2.5)
118
+ tzinfo (1.2.6)
125
119
  thread_safe (~> 0.1)
126
120
 
127
121
  PLATFORMS
@@ -134,8 +128,7 @@ DEPENDENCIES
134
128
  minitest
135
129
  minitest-reporters
136
130
  pry
137
- rails (~> 4.2.11)!
138
- rake
131
+ rake (~> 0.9)
139
132
  sqlite3
140
133
 
141
134
  BUNDLED WITH
data/Rakefile CHANGED
@@ -1,3 +1,4 @@
1
+ #!/usr/bin/env rake
1
2
  # frozen_string_literal: true
2
3
 
3
4
  require 'rake/testtask'
data/attr_default.gemspec CHANGED
@@ -1,21 +1,20 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative 'lib/attr_default/version'
1
+ require File.expand_path('../lib/attr_default/version', __FILE__)
4
2
 
5
3
  Gem::Specification.new do |gem|
6
- gem.name = "attr_default"
7
- gem.require_paths = ["lib"]
8
- gem.version = AttrDefault::VERSION
9
- gem.authors = ["Invoca Development"]
10
- gem.email = ["development@invoca.com"]
4
+ gem.authors = ['Invoca development']
5
+ gem.email = ['development@invoca.com']
11
6
  gem.description = %q{Dynamic Ruby defaults for ActiveRecord attributes}
12
7
  gem.summary = %q{Dynamic Ruby defaults for ActiveRecord attributes. These are lazy evaluated just in time: when first accessed, or just before validation or save. This allows dynamic defaults to depend on attributes that are assigned after initialization, or on other dynamic defaults.}
13
- gem.homepage = "https://github.com/Invoca/attr_default"
8
+ gem.homepage = "https://github.com/RingRevenue/attr_default"
9
+
14
10
  gem.metadata = {
15
- "allowed_push_host" => "https://rubygems.org"
11
+ 'allowed_push_host' => 'https://rubygems.org'
16
12
  }
17
13
 
18
14
  gem.files = `git ls-files`.split($\)
19
15
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
20
16
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/.*\.rb})
17
+ gem.name = "attr_default"
18
+ gem.require_paths = ["lib"]
19
+ gem.version = AttrDefault::VERSION
21
20
  end
data/lib/attr_default.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module AttrDefault
2
4
  module ClassMethods
3
5
  def attr_default attr_name, default
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module AttrDefault
2
4
  # Rails 3 initialization
3
5
  def self.initialize_railtie
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module AttrDefault
2
- VERSION = "0.7.2"
4
+ VERSION = '0.8.0.pre.2'
3
5
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require_relative "test_helper.rb"
2
4
  require_relative "database_schema.rb"
3
5
  require_relative "test_models.rb"
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  if RUBY_PLATFORM == "java"
2
4
  database_adapter = "jdbcsqlite3"
3
5
  else
data/test/test_helper.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  ENV["RAILS_ENV"] = "test"
2
4
 
3
5
  require 'rubygems'
data/test/test_models.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
 
2
3
  module SomeOtherModule
3
4
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: attr_default
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.8.0.pre.2
5
5
  platform: ruby
6
6
  authors:
7
- - Invoca Development
7
+ - Invoca development
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-02 00:00:00.000000000 Z
11
+ date: 2020-03-10 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Dynamic Ruby defaults for ActiveRecord attributes
14
14
  email:
@@ -35,7 +35,7 @@ files:
35
35
  - test/reports/.gitkeep
36
36
  - test/test_helper.rb
37
37
  - test/test_models.rb
38
- homepage: https://github.com/Invoca/attr_default
38
+ homepage: https://github.com/RingRevenue/attr_default
39
39
  licenses: []
40
40
  metadata:
41
41
  allowed_push_host: https://rubygems.org
@@ -50,9 +50,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
50
50
  version: '0'
51
51
  required_rubygems_version: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - ">="
53
+ - - ">"
54
54
  - !ruby/object:Gem::Version
55
- version: '0'
55
+ version: 1.3.1
56
56
  requirements: []
57
57
  rubygems_version: 3.0.1
58
58
  signing_key: