rufus-json 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.txt CHANGED
@@ -2,7 +2,13 @@
2
2
  = rufus-json CHANGELOG.txt
3
3
 
4
4
 
5
- == rufus-json - 1.0.2 not yet released
5
+ == rufus-json - 1.0.3 released 2013/02/12
6
+
7
+ - JSON.parse(s, :create_additions => false)
8
+ see https://groups.google.com/forum/?fromgroups=#!topic/rubyonrails-security/4_YvCpLzL58
9
+
10
+
11
+ == rufus-json - 1.0.2 released 2012/05/24
6
12
 
7
13
 
8
14
  == rufus-json - 1.0.1 released 2011/06/01
data/LICENSE.txt CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- Copyright (c) 2009-2012, John Mettraux, jmettraux@gmail.com
2
+ Copyright (c) 2009-2013, John Mettraux, jmettraux@gmail.com
3
3
 
4
4
  Permission is hereby granted, free of charge, to any person obtaining a copy
5
5
  of this software and associated documentation files (the "Software"), to deal
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2009-2012, John Mettraux, jmettraux@gmail.com
2
+ # Copyright (c) 2009-2013, John Mettraux, jmettraux@gmail.com
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining a copy
5
5
  # of this software and associated documentation files (the "Software"), to deal
data/lib/rufus/json.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  #--
2
- # Copyright (c) 2009-2012, John Mettraux, jmettraux@gmail.com
2
+ # Copyright (c) 2009-2013, John Mettraux, jmettraux@gmail.com
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining a copy
5
5
  # of this software and associated documentation files (the "Software"), to deal
@@ -28,7 +28,7 @@ require 'ostruct'
28
28
  module Rufus
29
29
  module Json
30
30
 
31
- VERSION = '1.0.2'
31
+ VERSION = '1.0.3'
32
32
 
33
33
  # The JSON / JSON pure decoder
34
34
  #
@@ -47,7 +47,11 @@ module Json
47
47
  :indent => ' ', :object_nl => "\n", :array_nl => "\n", :space => ' ')
48
48
  },
49
49
  :decode => lambda { |s|
50
- ::JSON.parse("[#{s}]", :max_nesting => nil).first },
50
+ ::JSON.parse(
51
+ "[#{s}]",
52
+ :max_nesting => nil,
53
+ :create_additions => false
54
+ ).first },
51
55
  :error => lambda {
52
56
  ::JSON::ParserError }
53
57
  )
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rufus-json
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 2
10
- version: 1.0.2
9
+ - 3
10
+ version: 1.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - John Mettraux
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2012-05-24 00:00:00 Z
19
+ date: 2013-02-11 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: json