js-beautify 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.gitmodules +4 -0
- data/Gemfile +13 -0
- data/Gemfile.lock +27 -0
- data/LICENSE.txt +20 -0
- data/README.rdoc +13 -0
- data/Rakefile +29 -0
- data/VERSION +1 -0
- data/bin/js-beautify +5 -0
- data/init.sh +3 -0
- data/js-beautify-copy/.gitmodules +3 -0
- data/js-beautify-copy/Makefile +71 -0
- data/js-beautify-copy/README.md +39 -0
- data/js-beautify-copy/attic/beautify-cl/beautify-cl.js +142 -0
- data/js-beautify-copy/attic/bin/beautify_js +80 -0
- data/js-beautify-copy/attic/opera-userscript/beautifier.js +1087 -0
- data/js-beautify-copy/attic/opera-userscript/make_opera_userscript.sh +42 -0
- data/js-beautify-copy/attic/qtscript/jsbeautify.cpp +121 -0
- data/js-beautify-copy/attic/qtscript/jsbeautify.pro +5 -0
- data/js-beautify-copy/attic/qtscript/jsbeautify.qrc +6 -0
- data/js-beautify-copy/attic/qtscript/readme.txt +28 -0
- data/js-beautify-copy/attic/readme.txt +2 -0
- data/js-beautify-copy/attic/unmaintained/bbedit/jsBeautify_BBED.scpt +522 -0
- data/js-beautify-copy/attic/unmaintained/c-sharp/JSBeautify.cs +801 -0
- data/js-beautify-copy/attic/v8/README.txt +40 -0
- data/js-beautify-copy/attic/v8/beautify.h +2390 -0
- data/js-beautify-copy/attic/v8/jsbeautify.cpp +215 -0
- data/js-beautify-copy/beautify-css.js +198 -0
- data/js-beautify-copy/beautify-html.js +514 -0
- data/js-beautify-copy/beautify.js +1293 -0
- data/js-beautify-copy/favicon.png +0 -0
- data/js-beautify-copy/index.html +401 -0
- data/js-beautify-copy/jquery/jquery.cookie.js +96 -0
- data/js-beautify-copy/jquery/jquery.js +167 -0
- data/js-beautify-copy/license.txt +24 -0
- data/js-beautify-copy/php/jsbeautifier.php +1599 -0
- data/js-beautify-copy/php/test.php +476 -0
- data/js-beautify-copy/python/MANIFEST.in +2 -0
- data/js-beautify-copy/python/js-beautify +7 -0
- data/js-beautify-copy/python/js-beautify-profile +16 -0
- data/js-beautify-copy/python/js-beautify-test +10 -0
- data/js-beautify-copy/python/jsbeautifier/__init__.py +1166 -0
- data/js-beautify-copy/python/jsbeautifier/tests/__init__.py +1 -0
- data/js-beautify-copy/python/jsbeautifier/tests/testindentation.py +43 -0
- data/js-beautify-copy/python/jsbeautifier/tests/testjsbeautifier.py +464 -0
- data/js-beautify-copy/python/jsbeautifier/unpackers/README.specs.mkd +25 -0
- data/js-beautify-copy/python/jsbeautifier/unpackers/__init__.py +67 -0
- data/js-beautify-copy/python/jsbeautifier/unpackers/evalbased.py +39 -0
- data/js-beautify-copy/python/jsbeautifier/unpackers/javascriptobfuscator.py +58 -0
- data/js-beautify-copy/python/jsbeautifier/unpackers/myobfuscate.py +86 -0
- data/js-beautify-copy/python/jsbeautifier/unpackers/packer.py +104 -0
- data/js-beautify-copy/python/jsbeautifier/unpackers/tests/__init__.py +2 -0
- data/js-beautify-copy/python/jsbeautifier/unpackers/tests/test-myobfuscate-input.js +1 -0
- data/js-beautify-copy/python/jsbeautifier/unpackers/tests/test-myobfuscate-output.js +65 -0
- data/js-beautify-copy/python/jsbeautifier/unpackers/tests/test-packer-62-input.js +1 -0
- data/js-beautify-copy/python/jsbeautifier/unpackers/tests/test-packer-non62-input.js +1 -0
- data/js-beautify-copy/python/jsbeautifier/unpackers/tests/testjavascriptobfuscator.py +46 -0
- data/js-beautify-copy/python/jsbeautifier/unpackers/tests/testmyobfuscate.py +40 -0
- data/js-beautify-copy/python/jsbeautifier/unpackers/tests/testpacker.py +34 -0
- data/js-beautify-copy/python/jsbeautifier/unpackers/tests/testurlencode.py +36 -0
- data/js-beautify-copy/python/jsbeautifier/unpackers/urlencode.py +34 -0
- data/js-beautify-copy/python/setup.py +17 -0
- data/js-beautify-copy/tests/beautify-tests.js +489 -0
- data/js-beautify-copy/tests/run-tests +17 -0
- data/js-beautify-copy/tests/sanitytest.js +128 -0
- data/js-beautify-copy/unpackers/javascriptobfuscator_unpacker.js +103 -0
- data/js-beautify-copy/unpackers/myobfuscate_unpacker.js +81 -0
- data/js-beautify-copy/unpackers/p_a_c_k_e_r_unpacker.js +61 -0
- data/js-beautify-copy/unpackers/urlencode_unpacker.js +51 -0
- data/lib/js-beautify.rb +0 -0
- data/test/helper.rb +18 -0
- data/test/test_js-beautify.rb +7 -0
- data/update.sh +23 -0
- metadata +173 -0
data/test/helper.rb
ADDED
@@ -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
|
data/update.sh
ADDED
@@ -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
|
+
|