js-beautify 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. data/.document +5 -0
  2. data/.gitmodules +4 -0
  3. data/Gemfile +13 -0
  4. data/Gemfile.lock +27 -0
  5. data/LICENSE.txt +20 -0
  6. data/README.rdoc +13 -0
  7. data/Rakefile +29 -0
  8. data/VERSION +1 -0
  9. data/bin/js-beautify +5 -0
  10. data/init.sh +3 -0
  11. data/js-beautify-copy/.gitmodules +3 -0
  12. data/js-beautify-copy/Makefile +71 -0
  13. data/js-beautify-copy/README.md +39 -0
  14. data/js-beautify-copy/attic/beautify-cl/beautify-cl.js +142 -0
  15. data/js-beautify-copy/attic/bin/beautify_js +80 -0
  16. data/js-beautify-copy/attic/opera-userscript/beautifier.js +1087 -0
  17. data/js-beautify-copy/attic/opera-userscript/make_opera_userscript.sh +42 -0
  18. data/js-beautify-copy/attic/qtscript/jsbeautify.cpp +121 -0
  19. data/js-beautify-copy/attic/qtscript/jsbeautify.pro +5 -0
  20. data/js-beautify-copy/attic/qtscript/jsbeautify.qrc +6 -0
  21. data/js-beautify-copy/attic/qtscript/readme.txt +28 -0
  22. data/js-beautify-copy/attic/readme.txt +2 -0
  23. data/js-beautify-copy/attic/unmaintained/bbedit/jsBeautify_BBED.scpt +522 -0
  24. data/js-beautify-copy/attic/unmaintained/c-sharp/JSBeautify.cs +801 -0
  25. data/js-beautify-copy/attic/v8/README.txt +40 -0
  26. data/js-beautify-copy/attic/v8/beautify.h +2390 -0
  27. data/js-beautify-copy/attic/v8/jsbeautify.cpp +215 -0
  28. data/js-beautify-copy/beautify-css.js +198 -0
  29. data/js-beautify-copy/beautify-html.js +514 -0
  30. data/js-beautify-copy/beautify.js +1293 -0
  31. data/js-beautify-copy/favicon.png +0 -0
  32. data/js-beautify-copy/index.html +401 -0
  33. data/js-beautify-copy/jquery/jquery.cookie.js +96 -0
  34. data/js-beautify-copy/jquery/jquery.js +167 -0
  35. data/js-beautify-copy/license.txt +24 -0
  36. data/js-beautify-copy/php/jsbeautifier.php +1599 -0
  37. data/js-beautify-copy/php/test.php +476 -0
  38. data/js-beautify-copy/python/MANIFEST.in +2 -0
  39. data/js-beautify-copy/python/js-beautify +7 -0
  40. data/js-beautify-copy/python/js-beautify-profile +16 -0
  41. data/js-beautify-copy/python/js-beautify-test +10 -0
  42. data/js-beautify-copy/python/jsbeautifier/__init__.py +1166 -0
  43. data/js-beautify-copy/python/jsbeautifier/tests/__init__.py +1 -0
  44. data/js-beautify-copy/python/jsbeautifier/tests/testindentation.py +43 -0
  45. data/js-beautify-copy/python/jsbeautifier/tests/testjsbeautifier.py +464 -0
  46. data/js-beautify-copy/python/jsbeautifier/unpackers/README.specs.mkd +25 -0
  47. data/js-beautify-copy/python/jsbeautifier/unpackers/__init__.py +67 -0
  48. data/js-beautify-copy/python/jsbeautifier/unpackers/evalbased.py +39 -0
  49. data/js-beautify-copy/python/jsbeautifier/unpackers/javascriptobfuscator.py +58 -0
  50. data/js-beautify-copy/python/jsbeautifier/unpackers/myobfuscate.py +86 -0
  51. data/js-beautify-copy/python/jsbeautifier/unpackers/packer.py +104 -0
  52. data/js-beautify-copy/python/jsbeautifier/unpackers/tests/__init__.py +2 -0
  53. data/js-beautify-copy/python/jsbeautifier/unpackers/tests/test-myobfuscate-input.js +1 -0
  54. data/js-beautify-copy/python/jsbeautifier/unpackers/tests/test-myobfuscate-output.js +65 -0
  55. data/js-beautify-copy/python/jsbeautifier/unpackers/tests/test-packer-62-input.js +1 -0
  56. data/js-beautify-copy/python/jsbeautifier/unpackers/tests/test-packer-non62-input.js +1 -0
  57. data/js-beautify-copy/python/jsbeautifier/unpackers/tests/testjavascriptobfuscator.py +46 -0
  58. data/js-beautify-copy/python/jsbeautifier/unpackers/tests/testmyobfuscate.py +40 -0
  59. data/js-beautify-copy/python/jsbeautifier/unpackers/tests/testpacker.py +34 -0
  60. data/js-beautify-copy/python/jsbeautifier/unpackers/tests/testurlencode.py +36 -0
  61. data/js-beautify-copy/python/jsbeautifier/unpackers/urlencode.py +34 -0
  62. data/js-beautify-copy/python/setup.py +17 -0
  63. data/js-beautify-copy/tests/beautify-tests.js +489 -0
  64. data/js-beautify-copy/tests/run-tests +17 -0
  65. data/js-beautify-copy/tests/sanitytest.js +128 -0
  66. data/js-beautify-copy/unpackers/javascriptobfuscator_unpacker.js +103 -0
  67. data/js-beautify-copy/unpackers/myobfuscate_unpacker.js +81 -0
  68. data/js-beautify-copy/unpackers/p_a_c_k_e_r_unpacker.js +61 -0
  69. data/js-beautify-copy/unpackers/urlencode_unpacker.js +51 -0
  70. data/lib/js-beautify.rb +0 -0
  71. data/test/helper.rb +18 -0
  72. data/test/test_js-beautify.rb +7 -0
  73. data/update.sh +23 -0
  74. metadata +173 -0
@@ -0,0 +1,18 @@
1
+ require 'rubygems'
2
+ require 'bundler'
3
+ begin
4
+ Bundler.setup(:default, :development)
5
+ rescue Bundler::BundlerError => e
6
+ $stderr.puts e.message
7
+ $stderr.puts "Run `bundle install` to install missing gems"
8
+ exit e.status_code
9
+ end
10
+ require 'test/unit'
11
+ require 'shoulda'
12
+
13
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
14
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
15
+ require 'js-beautify'
16
+
17
+ class Test::Unit::TestCase
18
+ end
@@ -0,0 +1,7 @@
1
+ require 'helper'
2
+
3
+ class TestJsBeautify < Test::Unit::TestCase
4
+ should "probably rename this file and start testing for real" do
5
+ flunk "hey buddy, you should probably rename this file and start testing for real"
6
+ end
7
+ end
@@ -0,0 +1,23 @@
1
+ #!/bin/sh
2
+
3
+ # updates the extension because we can't have a submodule as part of a gem
4
+
5
+ # update submodules
6
+ git submodule sync && git submodule init && git submodule update && git submodule foreach git fetch origin && git submodule foreach git submodule init && git submodule foreach git submodule update
7
+
8
+ echo "updated submodules\n"
9
+
10
+ # delete current directory
11
+ rm -rf js-beautify-copy
12
+
13
+ # copy files
14
+ cp -R js-beautify js-beautify-copy
15
+
16
+ echo "copied files\n"
17
+
18
+ # build the gem
19
+ rake version
20
+ rake version:bump:patch
21
+ rake version
22
+
23
+ echo "updated version\n"
metadata ADDED
@@ -0,0 +1,173 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: js-beautify
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.1.7
6
+ platform: ruby
7
+ authors:
8
+ - hbt
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2012-06-22 00:00:00 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: shoulda
17
+ requirement: &id001 !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: "0"
23
+ type: :development
24
+ prerelease: false
25
+ version_requirements: *id001
26
+ - !ruby/object:Gem::Dependency
27
+ name: rdoc
28
+ requirement: &id002 !ruby/object:Gem::Requirement
29
+ none: false
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: "3.12"
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: *id002
37
+ - !ruby/object:Gem::Dependency
38
+ name: bundler
39
+ requirement: &id003 !ruby/object:Gem::Requirement
40
+ none: false
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ version: "0"
45
+ type: :development
46
+ prerelease: false
47
+ version_requirements: *id003
48
+ - !ruby/object:Gem::Dependency
49
+ name: jeweler
50
+ requirement: &id004 !ruby/object:Gem::Requirement
51
+ none: false
52
+ requirements:
53
+ - - ~>
54
+ - !ruby/object:Gem::Version
55
+ version: 1.8.3
56
+ type: :development
57
+ prerelease: false
58
+ version_requirements: *id004
59
+ description: Gem for js-beautify
60
+ email: hassenbentanfous@gmail.com
61
+ executables:
62
+ - js-beautify
63
+ extensions: []
64
+
65
+ extra_rdoc_files:
66
+ - LICENSE.txt
67
+ - README.rdoc
68
+ files:
69
+ - .document
70
+ - .gitmodules
71
+ - Gemfile
72
+ - Gemfile.lock
73
+ - LICENSE.txt
74
+ - README.rdoc
75
+ - Rakefile
76
+ - VERSION
77
+ - bin/js-beautify
78
+ - init.sh
79
+ - js-beautify-copy/.gitmodules
80
+ - js-beautify-copy/Makefile
81
+ - js-beautify-copy/README.md
82
+ - js-beautify-copy/attic/beautify-cl/beautify-cl.js
83
+ - js-beautify-copy/attic/bin/beautify_js
84
+ - js-beautify-copy/attic/opera-userscript/beautifier.js
85
+ - js-beautify-copy/attic/opera-userscript/make_opera_userscript.sh
86
+ - js-beautify-copy/attic/qtscript/jsbeautify.cpp
87
+ - js-beautify-copy/attic/qtscript/jsbeautify.pro
88
+ - js-beautify-copy/attic/qtscript/jsbeautify.qrc
89
+ - js-beautify-copy/attic/qtscript/readme.txt
90
+ - js-beautify-copy/attic/readme.txt
91
+ - js-beautify-copy/attic/unmaintained/bbedit/jsBeautify_BBED.scpt
92
+ - js-beautify-copy/attic/unmaintained/c-sharp/JSBeautify.cs
93
+ - js-beautify-copy/attic/v8/README.txt
94
+ - js-beautify-copy/attic/v8/beautify.h
95
+ - js-beautify-copy/attic/v8/jsbeautify.cpp
96
+ - js-beautify-copy/beautify-css.js
97
+ - js-beautify-copy/beautify-html.js
98
+ - js-beautify-copy/beautify.js
99
+ - js-beautify-copy/favicon.png
100
+ - js-beautify-copy/index.html
101
+ - js-beautify-copy/jquery/jquery.cookie.js
102
+ - js-beautify-copy/jquery/jquery.js
103
+ - js-beautify-copy/license.txt
104
+ - js-beautify-copy/php/jsbeautifier.php
105
+ - js-beautify-copy/php/test.php
106
+ - js-beautify-copy/python/MANIFEST.in
107
+ - js-beautify-copy/python/js-beautify
108
+ - js-beautify-copy/python/js-beautify-profile
109
+ - js-beautify-copy/python/js-beautify-test
110
+ - js-beautify-copy/python/jsbeautifier/__init__.py
111
+ - js-beautify-copy/python/jsbeautifier/tests/__init__.py
112
+ - js-beautify-copy/python/jsbeautifier/tests/testindentation.py
113
+ - js-beautify-copy/python/jsbeautifier/tests/testjsbeautifier.py
114
+ - js-beautify-copy/python/jsbeautifier/unpackers/README.specs.mkd
115
+ - js-beautify-copy/python/jsbeautifier/unpackers/__init__.py
116
+ - js-beautify-copy/python/jsbeautifier/unpackers/evalbased.py
117
+ - js-beautify-copy/python/jsbeautifier/unpackers/javascriptobfuscator.py
118
+ - js-beautify-copy/python/jsbeautifier/unpackers/myobfuscate.py
119
+ - js-beautify-copy/python/jsbeautifier/unpackers/packer.py
120
+ - js-beautify-copy/python/jsbeautifier/unpackers/tests/__init__.py
121
+ - js-beautify-copy/python/jsbeautifier/unpackers/tests/test-myobfuscate-input.js
122
+ - js-beautify-copy/python/jsbeautifier/unpackers/tests/test-myobfuscate-output.js
123
+ - js-beautify-copy/python/jsbeautifier/unpackers/tests/test-packer-62-input.js
124
+ - js-beautify-copy/python/jsbeautifier/unpackers/tests/test-packer-non62-input.js
125
+ - js-beautify-copy/python/jsbeautifier/unpackers/tests/testjavascriptobfuscator.py
126
+ - js-beautify-copy/python/jsbeautifier/unpackers/tests/testmyobfuscate.py
127
+ - js-beautify-copy/python/jsbeautifier/unpackers/tests/testpacker.py
128
+ - js-beautify-copy/python/jsbeautifier/unpackers/tests/testurlencode.py
129
+ - js-beautify-copy/python/jsbeautifier/unpackers/urlencode.py
130
+ - js-beautify-copy/python/setup.py
131
+ - js-beautify-copy/tests/beautify-tests.js
132
+ - js-beautify-copy/tests/run-tests
133
+ - js-beautify-copy/tests/sanitytest.js
134
+ - js-beautify-copy/unpackers/javascriptobfuscator_unpacker.js
135
+ - js-beautify-copy/unpackers/myobfuscate_unpacker.js
136
+ - js-beautify-copy/unpackers/p_a_c_k_e_r_unpacker.js
137
+ - js-beautify-copy/unpackers/urlencode_unpacker.js
138
+ - lib/js-beautify.rb
139
+ - test/helper.rb
140
+ - test/test_js-beautify.rb
141
+ - update.sh
142
+ homepage: http://github.com/hbt/js-beautify-gem
143
+ licenses:
144
+ - MIT
145
+ post_install_message:
146
+ rdoc_options: []
147
+
148
+ require_paths:
149
+ - lib
150
+ required_ruby_version: !ruby/object:Gem::Requirement
151
+ none: false
152
+ requirements:
153
+ - - ">="
154
+ - !ruby/object:Gem::Version
155
+ hash: 959796147
156
+ segments:
157
+ - 0
158
+ version: "0"
159
+ required_rubygems_version: !ruby/object:Gem::Requirement
160
+ none: false
161
+ requirements:
162
+ - - ">="
163
+ - !ruby/object:Gem::Version
164
+ version: "0"
165
+ requirements: []
166
+
167
+ rubyforge_project:
168
+ rubygems_version: 1.8.15
169
+ signing_key:
170
+ specification_version: 3
171
+ summary: Gem for js-beautify
172
+ test_files: []
173
+