active_mocker 1.2.pre.1 → 1.2.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
  SHA1:
3
- metadata.gz: ed531aef6f2385bcca2a8dde9cf835d2f8ee8095
4
- data.tar.gz: e865179a97a28ea67a2ef0ef2d8f8f9caf106d54
3
+ metadata.gz: 086e96a5612addb22e4eea632520099b138de8d1
4
+ data.tar.gz: e0658178ae38b981e17fc9f45b62725c84aeadd6
5
5
  SHA512:
6
- metadata.gz: 79d1366e19e99927e8c85890cc18d77323bc704251eff0c2e39ae6f6a8fdbccc25afe6cebdfebeda6379bd79b7ee0cd8ca89a28eb20aebea5194219d7277fe5b
7
- data.tar.gz: 7e4fc80a64e9b654e69b453c81b9aca58ee77ec88cd4185638657385c0f9813cf9918920d8b7b5f0dc41abf41f8612091305dfb3b7493f6ba7e433a549355fef
6
+ metadata.gz: 4389ce464e807d5798f9806cf1e2a2e1118edaddd2c01806f9960268d89383cf5c32f78dbf2f53f78a4ed32cefdb856139241c469812a31ebc8dd2834ac9035a
7
+ data.tar.gz: d5d086d46b5728b13764e4bb3341dbc7e012476cd2866eedb0be888da34211ea4da57549b7826ff98a27c380050d55a5fab87655e2fe1c3f1a869218487fb488
@@ -54,6 +54,7 @@ class Generate
54
54
 
55
55
  def create_template
56
56
  tables.each do |table|
57
+ begin
57
58
  mock_template = MockTemplate.new
58
59
  # Schema Attributes
59
60
  mock_template.class_name = mock_class_name(table.name)
@@ -74,6 +75,10 @@ class Generate
74
75
  klass_str = mock_template.render( File.open(File.join(File.expand_path('../', __FILE__), 'mock_template.erb')).read)
75
76
  FileUtils::mkdir_p mock_dir unless File.directory? mock_dir
76
77
  File.open(File.join(mock_dir,"#{table.name.singularize}_mock.rb"), 'w').write(klass_str)
78
+ rescue
79
+ puts "failed to load #{table_to_model_file(table)} model"
80
+ next
81
+ end
77
82
  end
78
83
 
79
84
  end
@@ -1,3 +1,3 @@
1
1
  module ActiveMocker
2
- VERSION = "1.2.pre.1"
2
+ VERSION = "1.2.pre.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_mocker
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.pre.1
4
+ version: 1.2.pre.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dustin Zeisler