jsobfu 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +8 -8
  2. data/lib/jsobfu.rb +2 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZjQ5NmUzNTU1Mzk3ODdiZDNlMTkyNTQ5YWNmY2Y2MjJlNDVjNGZkMg==
4
+ ZDA3YTM4ZTgyNjgyMzJiNDA2NTNhOTRhYmE0YWQ3OWZkMmYyMjI3Yg==
5
5
  data.tar.gz: !binary |-
6
- MGJhOTA3NDJiMDg4ODY4MDE3NDBkYWRiMGFjNjhhY2FiZjdiYzczZA==
6
+ MzUyZTBlYTQxMmE4MmJhOTkzZDcyZmFjMzVkYTIyZTk0MGRiNzNiYg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NDA3NmNiYTI1MjM0ZjFhNWMyYTJjMWFkNTU2YTdhZjg4ODYxNWJlMmQwNjZh
10
- MWRjMTUzZmUyNDcwMmJmNjYxZDliN2ViZTYyYjA2MWVmZmFkNzIzZGUwZDhj
11
- ZDFmMDUwZmY2Y2JiMmNjNjU0MzA2ZjRiZTAyOGIwMzYxZjM5YWE=
9
+ NWU3ZmM5MjMyNjZiYmE5ZjBkMWE0ZmI5MGVkMjY5MTM3MGIxZTI2YjU1MjM2
10
+ ZWMyNWU2YWI4NzI3YWE1YzBmNTI5NmJkZDhkNzE0YjA2NGU0NzFiMjFkMTBm
11
+ MGQwYTE5MDkyOGUyMzQ1NzE3OTE4ZjFhZjAwNGE2NDJiZDA2MGU=
12
12
  data.tar.gz: !binary |-
13
- ODI4ZTgyOTFkZDBlZTdhZDFkN2M0ODU2NWJkYmMwYjYwZTFiNTc2Yjg1OGEx
14
- YzdhZTRmNjcwYTNhNzlkNTgxYzU0YjJjODVkNmIwYWE4ZWYwZTk3MTY4NzQ4
15
- NDM4ODEzODQ4NTI0ODA3NTJhMWQwZjY1NDJlNzA3ZGFlOGQzN2I=
13
+ MDVkNGJjMzhhODA5NGQ0NjBiOGM1ZWEzYzY0MDQ3ZjFjZjI2YmRiMDk1YzVh
14
+ MWRjZTcxNjJhZjY1OWU5NmI0Y2UxY2EwNGVkNjVmODdkZjYxMzY1YTUwM2Rk
15
+ YTQxM2IxOGFmMjc0NzQ1ODFiYWJlMDVlODAxMDcxMTA1MDAzYTk=
@@ -13,8 +13,9 @@ class JSObfu
13
13
  attr_reader :scope
14
14
 
15
15
  # Saves +code+ for later obfuscation with #obfuscate
16
+ # @param [#to_s] code the code to obfuscate
16
17
  def initialize(code)
17
- @code = code
18
+ @code = code.to_s
18
19
  @scope = Scope.new
19
20
  end
20
21
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsobfu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Lee