pg_assets 1.0 → 1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -113,5 +113,31 @@ describe PGAssets::Services::PGAssetManager do
113
113
  PGAssets::Services::PGAssetManager.triggers.size.must_equal 2
114
114
  PGAssets::Services::PGAssetManager.constraints.size.must_equal 3
115
115
  end
116
+
117
+ it "does not load assets twice if the rake task is run twice" do
118
+ PGAssets::Services::PGAssetManager.views.size.must_equal 0
119
+ PGAssets::Services::PGAssetManager.matviews.size.must_equal 0
120
+ PGAssets::Services::PGAssetManager.functions.size.must_equal 0
121
+ PGAssets::Services::PGAssetManager.triggers.size.must_equal 0
122
+ PGAssets::Services::PGAssetManager.constraints.size.must_equal 0
123
+
124
+ PGAssets::Services::PGAssetManager.assets_load @assets
125
+
126
+ PGAssets::Services::PGAssetManager.views.size.must_equal 2
127
+ PGAssets::Services::PGAssetManager.matviews.size.must_equal 2
128
+ PGAssets::Services::PGAssetManager.functions.size.must_equal 4
129
+ PGAssets::Services::PGAssetManager.triggers.size.must_equal 2
130
+ PGAssets::Services::PGAssetManager.constraints.size.must_equal 3
131
+
132
+ PGAssets::Services::PGAssetManager.assets_load @assets
133
+
134
+ PGAssets::Services::PGAssetManager.views.size.must_equal 2
135
+ PGAssets::Services::PGAssetManager.matviews.size.must_equal 2
136
+ PGAssets::Services::PGAssetManager.functions.size.must_equal 4
137
+ PGAssets::Services::PGAssetManager.triggers.size.must_equal 2
138
+ PGAssets::Services::PGAssetManager.constraints.size.must_equal 3
139
+
140
+ PGAssets::Services::PGAssetManager.assets_dump.must_equal @assets
141
+ end
116
142
  end
117
143
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pg_assets
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.0'
4
+ version: '1.1'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Osborn
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-07 00:00:00.000000000 Z
11
+ date: 2016-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: 4.0.12
19
+ version: '4'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: 4.0.12
26
+ version: '4'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: pg
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -85,6 +85,7 @@ files:
85
85
  - lib/pg_assets/services/pg_asset_manager.rb
86
86
  - lib/pg_assets/version.rb
87
87
  - lib/pg_assets.rb
88
+ - lib/tasks/pg_assets.rake
88
89
  - MIT-LICENSE
89
90
  - Rakefile
90
91
  - test/assets/constraint_check.sql
@@ -125,6 +126,7 @@ files:
125
126
  - test/dummy/config/locales/en.yml
126
127
  - test/dummy/config/routes.rb
127
128
  - test/dummy/config.ru
129
+ - test/dummy/db/schema.rb
128
130
  - test/dummy/log/test.log
129
131
  - test/dummy/public/404.html
130
132
  - test/dummy/public/422.html
@@ -202,6 +204,7 @@ test_files:
202
204
  - test/dummy/config/locales/en.yml
203
205
  - test/dummy/config/routes.rb
204
206
  - test/dummy/config.ru
207
+ - test/dummy/db/schema.rb
205
208
  - test/dummy/log/test.log
206
209
  - test/dummy/public/404.html
207
210
  - test/dummy/public/422.html