console_utils 0.6.0.2 → 0.6.1

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: 96ccb856084ba26b858d15f9ed0e4712798f1e15
4
- data.tar.gz: 606681cdc6257da04e242ccd3d9ad00957fe4e14
3
+ metadata.gz: 1237df5c83cc470db4751037fb4c69b6621107b6
4
+ data.tar.gz: cf25ad98fd29ef7e64ff4492f90f53af900aa7a4
5
5
  SHA512:
6
- metadata.gz: 5a4fa45bcb58e3cf5dfb79d7630c01831c8e85417c40cbb22f024cd756de613cd227dc44e81e356e22576e3b2dc5fceb2429f4ea62ffbea4c39a7720e3dea061
7
- data.tar.gz: 27d66b4be75d0a017bf923d71019ba73520700948cb8e5f2606b59e947df6e1f10b4fc9002ba964f2afa204c6a697854f9e935734bf67e04653d707fbd544a86
6
+ metadata.gz: f55c1bc099188665849ae15e78937a856d47fb595e63c0acf407f3d74a84d48736c4f7de308c516c9018d0f7f16209e827b81c93982270cb0608d03d28301594
7
+ data.tar.gz: 12e769585f1c0e8e3bb331e39c5c9ac1db266498e0a59d0bcd208d6c29fe4f56b1ffdcbc04fb71d56f64a88a509c2a04fe47437ca15073958b2ca7add44bbbeb
data/.gitignore CHANGED
@@ -8,6 +8,7 @@
8
8
  /doc/
9
9
  /pkg/
10
10
  /spec/reports/
11
+ /spec/log/
11
12
  /tmp/
12
13
  /.envrc
13
14
  /.ruby-*
data/Rakefile CHANGED
@@ -7,7 +7,7 @@ require 'rdoc/task'
7
7
 
8
8
  Rake::TestTask.new do |t|
9
9
  t.libs.concat %w(console_utils spec)
10
- t.pattern = "spec/*_spec.rb"
10
+ t.pattern = "spec/**/*_spec.rb"
11
11
  end
12
12
 
13
13
  desc 'Start the Rails console'
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ../
3
3
  specs:
4
- console_utils (0.4.1.1)
4
+ console_utils (0.6.0.2)
5
5
  activesupport (>= 4.1, < 5)
6
6
  awesome_print
7
7
  benchmark-ips
@@ -11,36 +11,36 @@ PATH
11
11
  GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
- actionmailer (4.2.4)
15
- actionpack (= 4.2.4)
16
- actionview (= 4.2.4)
17
- activejob (= 4.2.4)
14
+ actionmailer (4.2.7)
15
+ actionpack (= 4.2.7)
16
+ actionview (= 4.2.7)
17
+ activejob (= 4.2.7)
18
18
  mail (~> 2.5, >= 2.5.4)
19
19
  rails-dom-testing (~> 1.0, >= 1.0.5)
20
- actionpack (4.2.4)
21
- actionview (= 4.2.4)
22
- activesupport (= 4.2.4)
20
+ actionpack (4.2.7)
21
+ actionview (= 4.2.7)
22
+ activesupport (= 4.2.7)
23
23
  rack (~> 1.6)
24
24
  rack-test (~> 0.6.2)
25
25
  rails-dom-testing (~> 1.0, >= 1.0.5)
26
26
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
27
- actionview (4.2.4)
28
- activesupport (= 4.2.4)
27
+ actionview (4.2.7)
28
+ activesupport (= 4.2.7)
29
29
  builder (~> 3.1)
30
30
  erubis (~> 2.7.0)
31
31
  rails-dom-testing (~> 1.0, >= 1.0.5)
32
32
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
33
- activejob (4.2.4)
34
- activesupport (= 4.2.4)
33
+ activejob (4.2.7)
34
+ activesupport (= 4.2.7)
35
35
  globalid (>= 0.3.0)
36
- activemodel (4.2.4)
37
- activesupport (= 4.2.4)
36
+ activemodel (4.2.7)
37
+ activesupport (= 4.2.7)
38
38
  builder (~> 3.1)
39
- activerecord (4.2.4)
40
- activemodel (= 4.2.4)
41
- activesupport (= 4.2.4)
39
+ activerecord (4.2.7)
40
+ activemodel (= 4.2.7)
41
+ activesupport (= 4.2.7)
42
42
  arel (~> 6.0)
43
- activesupport (4.2.4)
43
+ activesupport (4.2.7)
44
44
  i18n (~> 0.7)
45
45
  json (~> 1.7, >= 1.7.7)
46
46
  minitest (~> 5.1)
@@ -51,10 +51,11 @@ GEM
51
51
  rake
52
52
  thor (>= 0.14.0)
53
53
  arel (6.0.3)
54
- awesome_print (1.6.1)
55
- benchmark-ips (2.3.0)
54
+ awesome_print (1.7.0)
55
+ benchmark-ips (2.6.1)
56
56
  builder (3.2.2)
57
57
  coderay (1.1.0)
58
+ concurrent-ruby (1.0.2)
58
59
  erubis (2.7.0)
59
60
  globalid (0.3.6)
60
61
  activesupport (>= 4.1.0)
@@ -62,14 +63,18 @@ GEM
62
63
  json (1.8.3)
63
64
  loofah (2.0.3)
64
65
  nokogiri (>= 1.5.9)
65
- mail (2.6.3)
66
- mime-types (>= 1.16, < 3)
66
+ mail (2.6.4)
67
+ mime-types (>= 1.16, < 4)
67
68
  method_source (0.8.2)
68
- mime-types (2.6.2)
69
- mini_portile (0.6.2)
70
- minitest (5.8.0)
71
- nokogiri (1.6.6.2)
72
- mini_portile (~> 0.6.0)
69
+ mime-types (3.1)
70
+ mime-types-data (~> 3.2015)
71
+ mime-types-data (3.2016.0521)
72
+ mini_portile2 (2.1.0)
73
+ minitest (5.9.0)
74
+ nokogiri (1.6.8)
75
+ mini_portile2 (~> 2.1.0)
76
+ pkg-config (~> 1.1.7)
77
+ pkg-config (1.1.7)
73
78
  pry (0.10.2)
74
79
  coderay (~> 1.1.0)
75
80
  method_source (~> 0.8.1)
@@ -79,16 +84,16 @@ GEM
79
84
  rack (1.6.4)
80
85
  rack-test (0.6.3)
81
86
  rack (>= 1.0)
82
- rails (4.2.4)
83
- actionmailer (= 4.2.4)
84
- actionpack (= 4.2.4)
85
- actionview (= 4.2.4)
86
- activejob (= 4.2.4)
87
- activemodel (= 4.2.4)
88
- activerecord (= 4.2.4)
89
- activesupport (= 4.2.4)
87
+ rails (4.2.7)
88
+ actionmailer (= 4.2.7)
89
+ actionpack (= 4.2.7)
90
+ actionview (= 4.2.7)
91
+ activejob (= 4.2.7)
92
+ activemodel (= 4.2.7)
93
+ activerecord (= 4.2.7)
94
+ activesupport (= 4.2.7)
90
95
  bundler (>= 1.3.0, < 2.0)
91
- railties (= 4.2.4)
96
+ railties (= 4.2.7)
92
97
  sprockets-rails
93
98
  rails-deprecated_sanitizer (1.0.3)
94
99
  activesupport (>= 4.2.0.alpha)
@@ -96,28 +101,29 @@ GEM
96
101
  activesupport (>= 4.2.0.beta, < 5.0)
97
102
  nokogiri (~> 1.6.0)
98
103
  rails-deprecated_sanitizer (>= 1.0.1)
99
- rails-html-sanitizer (1.0.2)
104
+ rails-html-sanitizer (1.0.3)
100
105
  loofah (~> 2.0)
101
- railties (4.2.4)
102
- actionpack (= 4.2.4)
103
- activesupport (= 4.2.4)
106
+ railties (4.2.7)
107
+ actionpack (= 4.2.7)
108
+ activesupport (= 4.2.7)
104
109
  rake (>= 0.8.7)
105
110
  thor (>= 0.18.1, < 2.0)
106
- rake (10.4.2)
111
+ rake (11.2.2)
107
112
  rdoc (4.2.0)
108
113
  slop (3.6.0)
109
- sprockets (3.3.4)
110
- rack (~> 1.0)
111
- sprockets-rails (2.3.3)
112
- actionpack (>= 3.0)
113
- activesupport (>= 3.0)
114
- sprockets (>= 2.8, < 4.0)
114
+ sprockets (3.6.3)
115
+ concurrent-ruby (~> 1.0)
116
+ rack (> 1, < 3)
117
+ sprockets-rails (3.1.1)
118
+ actionpack (>= 4.0)
119
+ activesupport (>= 4.0)
120
+ sprockets (>= 3.0.0)
115
121
  sqlite3 (1.3.10)
116
122
  term-ansicolor (1.3.2)
117
123
  tins (~> 1.0)
118
124
  thor (0.19.1)
119
125
  thread_safe (0.3.5)
120
- tins (1.6.0)
126
+ tins (1.11.0)
121
127
  tzinfo (1.2.2)
122
128
  thread_safe (~> 0.1)
123
129
 
@@ -134,4 +140,4 @@ DEPENDENCIES
134
140
  sqlite3
135
141
 
136
142
  BUNDLED WITH
137
- 1.10.6
143
+ 1.12.5
@@ -10,7 +10,7 @@ module ConsoleUtils::ActiveRecordUtils #:nodoc:
10
10
  end
11
11
 
12
12
  def anyid
13
- anyone.id
13
+ model.type_for_attribute('id').type_cast(connection.select_value(select(:id).random.limit(1)))
14
14
  end
15
15
  end
16
16
 
@@ -7,7 +7,7 @@ module ConsoleUtils
7
7
  MODULE_EXTENDS_MSG = "extending context...".freeze
8
8
 
9
9
  def self.setup(context)
10
- state = context.instance_variable_get(IVAR) || ReplState.new
10
+ state = (context.instance_variable_defined?(IVAR) ? context.instance_variable_get(IVAR) : nil) || ReplState.new
11
11
 
12
12
  return true if state.frozen?
13
13
 
@@ -1,3 +1,3 @@
1
1
  module ConsoleUtils
2
- VERSION = "0.6.0.2"
2
+ VERSION = "0.6.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: console_utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0.2
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-20 00:00:00.000000000 Z
11
+ date: 2016-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -192,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
192
192
  version: '0'
193
193
  requirements: []
194
194
  rubyforge_project:
195
- rubygems_version: 2.6.4
195
+ rubygems_version: 2.6.6
196
196
  signing_key:
197
197
  specification_version: 4
198
198
  summary: Groovy tools for Rails Console.