active_mocker 1.5.1 → 1.5.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: 1edb15603fc7877de9e692d8f3fc45cb58cd3341
4
- data.tar.gz: 2e94fd9993014ebbbe56d419ef935ce955b514ed
3
+ metadata.gz: 4f663b4c6a2cc7e33f7452262782b2c880108f11
4
+ data.tar.gz: 3c20207a292f97736ab241483da432d4da87510a
5
5
  SHA512:
6
- metadata.gz: fbf8c984fde48e9605bd0ff0daa12365f0e069d2988f678c9beaad28713f344e95a113b657d18e908f8a22719ee711f2a0e5f0d18944048a7a13ca487e3befd2
7
- data.tar.gz: f2802bded8c5d0c77b94dfeb04cf11e2133db6deefaa1f9fe2ffef6fbb7583b104087450be317b39a10eb7b68e58f4de27d14ac0345cf9d9153c4617d9096799
6
+ metadata.gz: fbb61f7da2ff8078c5a02dc1f865f85e54a24ea3693e8928cb4be590ee1947aefbf8f5693529a57129631b769d0e6d6a49d6a1546c0800fc197d6b6cc7902b72
7
+ data.tar.gz: afd4c94e4f99f62b8f380aa7196174fc9968e0fae7fd0f15ea1b80d3dbfd751fe1f65aa6aea48387dc1451a854db1f02edf262cf96e2a60815649d28932b7903
@@ -1,6 +1,12 @@
1
1
  # Changelog
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## 1.5.2 - 2014-07-14
5
+
6
+ ### Fixed
7
+ - `rake active_mocker:build` will only run after `rake db:migrate` instead of `db:schema:load` and `db:reset`.
8
+ - Removed Unused folder lib/active_record
9
+
4
10
  ## 1.5.1 - 2014-07-08
5
11
 
6
12
  ### Fixed
@@ -1,3 +1,5 @@
1
+ require 'forwardable'
2
+
1
3
  module ActiveMocker
2
4
  module Mock
3
5
 
@@ -13,7 +15,7 @@ module Mock
13
15
  collection.concat(records.flatten)
14
16
  end
15
17
 
16
- extend Forwardable
18
+ extend ::Forwardable
17
19
  def_delegators :@collection, :take, :push, :clear, :first, :last, :concat, :replace, :distinct, :uniq, :count, :size, :length, :empty?, :any?, :include?, :delete
18
20
  alias distinct uniq
19
21
 
@@ -6,7 +6,7 @@ namespace :active_mocker do
6
6
 
7
7
  end
8
8
 
9
- ['db:schema:load', 'db:migrate', 'db:reset'].each do |task|
9
+ ['db:migrate'].each do |task|
10
10
  Rake::Task[task].enhance do
11
11
  Rake::Task['active_mocker:build'].invoke
12
12
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveMocker
2
- VERSION = "1.5.1"
2
+ VERSION = "1.5.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_mocker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dustin Zeisler
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-08 00:00:00.000000000 Z
11
+ date: 2014-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -95,47 +95,47 @@ dependencies:
95
95
  - !ruby/object:Gem::Version
96
96
  version: 2.14.1
97
97
  - !ruby/object:Gem::Dependency
98
- name: sqlite3
98
+ name: rspec-rails
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - "~>"
101
+ - - '='
102
102
  - !ruby/object:Gem::Version
103
- version: '1.3'
103
+ version: 2.14.2
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - "~>"
108
+ - - '='
109
109
  - !ruby/object:Gem::Version
110
- version: '1.3'
110
+ version: 2.14.2
111
111
  - !ruby/object:Gem::Dependency
112
- name: rails
112
+ name: sqlite3
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '4.1'
117
+ version: '1.3'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
122
  - - "~>"
123
123
  - !ruby/object:Gem::Version
124
- version: '4.1'
124
+ version: '1.3'
125
125
  - !ruby/object:Gem::Dependency
126
- name: rspec-rails
126
+ name: rails
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - '='
129
+ - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: 2.14.1
131
+ version: '4.1'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - '='
136
+ - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: 2.14.1
138
+ version: '4.1'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: fuubar
141
141
  requirement: !ruby/object:Gem::Requirement
@@ -262,10 +262,6 @@ files:
262
262
  - lib/active_mocker/table.rb
263
263
  - lib/active_mocker/task.rake
264
264
  - lib/active_mocker/version.rb
265
- - lib/active_record/app/models/person.rb
266
- - lib/active_record/app/models/zip_code.rb
267
- - lib/active_record/ar.rb
268
- - lib/active_record/db/schema.rb
269
265
  - lib/file_reader.rb
270
266
  - lib/string_reader.rb
271
267
  homepage: https://github.com/zeisler/active_mocker
@@ -1,3 +0,0 @@
1
- class Person < ActiveRecord::Base
2
- belongs_to :zip_code
3
- end
@@ -1,2 +0,0 @@
1
- class ZipCode < ActiveRecord::Base
2
- end
@@ -1,10 +0,0 @@
1
- require 'rubygems'
2
- require 'active_record'
3
-
4
- ActiveRecord::Base.establish_connection({
5
- :adapter => "sqlite3",
6
- database: ":memory:"
7
- })
8
- require_relative 'db/schema'
9
- project_root = File.dirname(File.absolute_path(__FILE__))
10
- Dir.glob(project_root + "/app/models/*.rb").each{|f| require f }
@@ -1,38 +0,0 @@
1
- ActiveRecord::Schema.define(version: 20140327205359) do
2
-
3
- create_table "people", force: true do |t|
4
- t.integer "company_id"
5
- t.string "first_name", limit: 128
6
- t.string "middle_name", limit: 128
7
- t.string "last_name", limit: 128
8
- t.string "address_1", limit: 200
9
- t.string "address_2", limit: 100
10
- t.string "city", limit: 100
11
- t.integer "state_id"
12
- t.integer "zip_code_id"
13
- t.string "title", limit: 150
14
- t.string "department", limit: 150
15
- t.string "person_email", limit: 150
16
- t.string "work_phone", limit: 20
17
- t.string "cell_phone", limit: 20
18
- t.string "home_phone", limit: 20
19
- t.string "fax", limit: 20
20
- t.integer "user_id_assistant"
21
- t.date "birth_date"
22
- t.boolean "needs_review"
23
- t.datetime "created_at"
24
- t.datetime "updated_at"
25
-
26
- end
27
-
28
- create_table "zip_codes", force: true do |t|
29
- t.string "zip_code", limit: 9
30
- t.integer "state_id"
31
- t.integer "cola_by_fip_id"
32
- t.string "city_name", limit: 100
33
- t.string "County_name", limit: 100
34
- t.decimal "City_Latitude", precision: 8, scale: 4
35
- t.decimal "City_Longitude", precision: 8, scale: 4
36
- end
37
-
38
- end