impressionist 1.4.2 → 1.4.3

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: cac2802f1a96bf95bc358134f43a869aab3ba449
4
- data.tar.gz: afab8713bbc4b91bcd84a57a3042cbfce578643e
3
+ metadata.gz: 21b7ae84d4f69a1461cc94b0683901a5cee02b3c
4
+ data.tar.gz: a96eef9bfbaf175a8f7594dae7792a23c5f86033
5
5
  SHA512:
6
- metadata.gz: f92d2ef3618bce991811cb438751bc6e76497bcae951a8a42b1050133ed492c19e77b290f69a141d91087c91a40d851716e834e70645119675b7f5cea41b7229
7
- data.tar.gz: 8425229ed14a35088bb82ac68c3d4b5b910c694175ae03f4bdef963106745e06fb9e5597f6423e3b5233368670a086a80d46b1a62ba7bbb5737206b4d9ed0cff
6
+ metadata.gz: 2db50fbc8aebbee44415db4494e1257d2eb069fbd2e2a5ddd38d2173d9c31361d850a943ed4dea91629680e3fe7feef336942d31d535c15812b67ed070f5ec2a
7
+ data.tar.gz: 4528503dd4e5f27dc89aca3ffbac10cbcf06b242d9352d9b06f80abb38364f8966efe3649751789f40fd4da5d851e4ff7b1d3f1c868841708a7137e8be6c61d7
data/CHANGELOG.rdoc CHANGED
@@ -1,3 +1,19 @@
1
+ == 1.4.2 (2013-07-12)
2
+ * Added Mongoid Support
3
+ * Support Rails > 3.1 < 4.0
4
+ * Fixed #93
5
+ * Fixed travis failing
6
+ * Added two new entities
7
+ * Added MiniTest, testing against impressionist ( RSpec still testing test_app, will be removed soon)
8
+ * Clean up
9
+ * Moved all tests into tests dir
10
+
11
+ == 1.4.1 (2013-07-07)
12
+ * Added test support
13
+ * fix trailing space
14
+ * Created individually rspec files
15
+ * (@nbit001)
16
+
1
17
  == 1.4.0 (2013-07-06)
2
18
  * Fixed #92
3
19
  * Pass option to unique for updatind counter_cache
@@ -4,6 +4,7 @@ module ActiveRecord
4
4
  include Rails::Generators::Migration
5
5
  source_root File.join(File.dirname(__FILE__), 'templates')
6
6
 
7
+ # FIX, why is this implementing rails behaviour?
7
8
  def self.next_migration_number(dirname)
8
9
  sleep 1
9
10
  if ActiveRecord::Base.timestamped_migrations
@@ -1,5 +1,6 @@
1
1
  # Use this hook to configure impressionist parameters
2
- Impressionist.setup do |config|
2
+ #Impressionist.setup do |config|
3
3
  # Define ORM. Could be :active_record (default), :mongo_mapper or :mongoid
4
4
  # config.orm = :active_record
5
- end
5
+ #end
6
+ Impressionist.orm = :<%= options.orm if options.orm %>
@@ -1,3 +1,3 @@
1
1
  module Impressionist
2
- VERSION = "1.4.2"
2
+ VERSION = "1.4.3"
3
3
  end
data/tests/README CHANGED
@@ -1 +1,11 @@
1
1
  Impressionist uses MiniTest
2
+
3
+ tests/test_app still uses rspec. However it is going to be changed.
4
+
5
+ to run tests one shoud:
6
+ * bundle install
7
+ * rails g impressionist
8
+ * rake db:migrate && rake db:test:prepare
9
+ * rake # runs both code base tests and rails tests
10
+ * rake test # impressionist's tests
11
+ * rake spec # rails test api
@@ -1,2 +1,5 @@
1
- # Define ORM. Could be :active_record (default) and :mongo_mapper
2
- #Impressionist.config.orm = :mongoid
1
+ # Use this hook to configure impressionist parameters
2
+ Impressionist.setup do |config|
3
+ # Define ORM. Could be :active_record (default), :mongo_mapper or :mongoid
4
+ # config.orm = :active_record
5
+ end
@@ -2,8 +2,8 @@ require 'spec_helper'
2
2
  require 'systemu'
3
3
 
4
4
  # FIXME this test might break the others if run before them
5
- #
6
- describe Impressionist do
5
+ # started fixing @nbit001
6
+ describe Impressionist, :migration do
7
7
  fixtures :articles,:impressions,:posts
8
8
  it "should delete existing migration and generate the migration file" do
9
9
  pending
@@ -17,12 +17,24 @@ Dir[Rails.root.join("spec/support/**/*.rb")].each {|f|
17
17
  }
18
18
 
19
19
  RSpec.configure do |config|
20
+
21
+ # in order to pass tags(symbols) as true values
22
+ # you need to tell rspec to do so by
23
+ config.treat_symbols_as_metadata_keys_with_true_values = true
24
+
20
25
  config.mock_with :rspec
21
26
 
22
27
  config.fixture_path = "#{::Rails.root}/spec/fixtures"
23
28
 
24
29
  config.use_transactional_fixtures = true
25
30
 
31
+ # excludes migration tag while running app base tests
32
+ config.filter_run_excluding :migration => true
33
+
34
+ # self explanatory
35
+ # runs everything
36
+ config.run_all_when_everything_filtered = true
37
+
26
38
  # make the rails logger usable in the tests as logger.xxx "..."
27
39
  def logger
28
40
  Rails.logger
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: impressionist
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2
4
+ version: 1.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - johnmcaliley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-12 00:00:00.000000000 Z
11
+ date: 2013-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpclient