impressionist 1.6.1 → 2.0.0

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: ece53bd074111938c17d3cbd3b97949cdd87b94b
4
- data.tar.gz: e3f6c58a7dee094cbd9f34414d455edbc64402ef
3
+ metadata.gz: a445d7fd882f04a0003cf8553f2d7608a643d3e4
4
+ data.tar.gz: 7a982955b57950705007755f1c41e5c27de01c35
5
5
  SHA512:
6
- metadata.gz: b104697a66dc806f93d6da4666cf2fb39610f0a63641f276b7f9b2ca627d964aded1c995bc83ec0bfbae984111d60804f3bac714f2b344d1801a429c8d4170c6
7
- data.tar.gz: d877a077d993b98d466b614c392325aad1123bd3894503c51ee95cb893a5b04d4303e637bc58d2189e41f42d320cf3649dffd573ff5aabf74883a6292838947e
6
+ metadata.gz: 6b7e6eb3bac2c3503f15dd3c18fcff82dc224eafcde0fba390941c825b2165c3552c7ff62b7cce6388e4fab1ea16480a9a167e3eb42d9490ef1ee3845d93e244
7
+ data.tar.gz: 2f10faf5b36044447f9e8de02868a71873647d4bb64ec001f55ab4c8f5100a61fffb21bc4a4c8fee1f2ae37ffe46955277f74b9e8433df773179b554bb6f1973
@@ -1,4 +1,4 @@
1
- Copyright (c) 2011 cowboycoded
1
+ Copyright (c) 2018 github.com/johnmcaliley
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -246,8 +246,10 @@ Want to run the tests? Ok mummy
246
246
 
247
247
  Contributors
248
248
  ------------
249
+ WE ARE CURRENTLY LOOKING FOR SOMEONE TO HELP MAINTAIN THIS REPOSITORY. IF YOU ARE INTERESTED, MESSAGE @johnmcaliley.
250
+
249
251
  * [johnmcaliley - creator](https://github.com/johnmcaliley)
250
- * [jgrau - maintainer](https://github.com/jgrau)
252
+ * [jgrau](https://github.com/jgrau)
251
253
  * [acnalesso](https://github.com/acnalesso)
252
254
  * [coryschires](https://github.com/coryschires)
253
255
  * [georgmittendorfer](https://github.com/georgmittendorfer)
@@ -51,7 +51,7 @@ module ImpressionistController
51
51
 
52
52
  # creates a statment hash that contains default values for creating an impression via an AR relation.
53
53
  def associative_create_statement(query_params={})
54
- filter = ActionDispatch::Http::ParameterFilter.new(Rails.application.config.filter_parameters)
54
+ filter = ActiveSupport::ParameterFilter.new(Rails.application.config.filter_parameters)
55
55
  query_params.reverse_merge!(
56
56
  :controller_name => controller_name,
57
57
  :action_name => action_name,
@@ -138,7 +138,10 @@ module ImpressionistController
138
138
  # str = request.session_options[:id]
139
139
  # logger.debug "Encoding: #{str.encoding.inspect}"
140
140
  # # request.session_options[:id].encode("ISO-8859-1")
141
- request.session_options[:id]
141
+ id = request.session_options[:id]
142
+ # rack 2.0.8 releases new version of session id, id.to_s will raise error!
143
+ id = id.cookie_value if Rack::Session::SessionId.const_defined?(:ID_VERSION) && Rack::Session::SessionId::ID_VERSION == 2
144
+ id
142
145
  end
143
146
 
144
147
  def params_hash
@@ -1,3 +1,3 @@
1
1
  module Impressionist
2
- VERSION = "1.6.1"
2
+ VERSION = "2.0.0"
3
3
  end
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.6.1
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - johnmcaliley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-16 00:00:00.000000000 Z
11
+ date: 2020-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri