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 +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/active_mocker/mock/collection.rb +3 -1
- data/lib/active_mocker/task.rake +1 -1
- data/lib/active_mocker/version.rb +1 -1
- metadata +15 -19
- data/lib/active_record/app/models/person.rb +0 -3
- data/lib/active_record/app/models/zip_code.rb +0 -2
- data/lib/active_record/ar.rb +0 -10
- data/lib/active_record/db/schema.rb +0 -38
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f663b4c6a2cc7e33f7452262782b2c880108f11
|
4
|
+
data.tar.gz: 3c20207a292f97736ab241483da432d4da87510a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fbb61f7da2ff8078c5a02dc1f865f85e54a24ea3693e8928cb4be590ee1947aefbf8f5693529a57129631b769d0e6d6a49d6a1546c0800fc197d6b6cc7902b72
|
7
|
+
data.tar.gz: afd4c94e4f99f62b8f380aa7196174fc9968e0fae7fd0f15ea1b80d3dbfd751fe1f65aa6aea48387dc1451a854db1f02edf262cf96e2a60815649d28932b7903
|
data/CHANGELOG.md
CHANGED
@@ -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
|
|
data/lib/active_mocker/task.rake
CHANGED
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.
|
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-
|
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:
|
98
|
+
name: rspec-rails
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - '='
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
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:
|
110
|
+
version: 2.14.2
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
112
|
+
name: sqlite3
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: '
|
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: '
|
124
|
+
version: '1.3'
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
|
-
name:
|
126
|
+
name: rails
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
128
128
|
requirements:
|
129
|
-
- -
|
129
|
+
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version:
|
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:
|
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
|
data/lib/active_record/ar.rb
DELETED
@@ -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
|