namey 0.0.10 → 0.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +5 -2
  3. data/Gemfile +0 -2
  4. data/LICENSE +21 -0
  5. data/bin/namey-load-data +1 -1
  6. data/lib/namey/generator.rb +8 -6
  7. data/lib/namey/version.rb +1 -1
  8. data/namey.gemspec +4 -10
  9. data/spec/generator_spec.rb +23 -12
  10. data/specs.watchr +60 -0
  11. metadata +27 -100
  12. data/api/Gemfile +0 -12
  13. data/api/config.ru.example +0 -10
  14. data/api/namey_app.rb +0 -78
  15. data/api/public/LICENSE +0 -176
  16. data/api/public/Makefile +0 -30
  17. data/api/public/README.md +0 -105
  18. data/api/public/ajax-loader.gif +0 -0
  19. data/api/public/api.js +0 -90
  20. data/api/public/bootstrap.css +0 -2467
  21. data/api/public/bootstrap.min.css +0 -356
  22. data/api/public/docs/assets/css/docs.css +0 -317
  23. data/api/public/docs/assets/ico/bootstrap-apple-114x114.png +0 -0
  24. data/api/public/docs/assets/ico/bootstrap-apple-57x57.png +0 -0
  25. data/api/public/docs/assets/ico/bootstrap-apple-72x72.png +0 -0
  26. data/api/public/docs/assets/ico/favicon.ico +0 -0
  27. data/api/public/docs/assets/img/bird.png +0 -0
  28. data/api/public/docs/assets/img/browsers.png +0 -0
  29. data/api/public/docs/assets/img/example-diagram-01.png +0 -0
  30. data/api/public/docs/assets/img/example-diagram-02.png +0 -0
  31. data/api/public/docs/assets/img/example-diagram-03.png +0 -0
  32. data/api/public/docs/assets/img/grid-18px.png +0 -0
  33. data/api/public/docs/assets/img/twitter-logo-no-bird.png +0 -0
  34. data/api/public/docs/assets/js/application.js +0 -52
  35. data/api/public/docs/assets/js/google-code-prettify/prettify.css +0 -94
  36. data/api/public/docs/assets/js/google-code-prettify/prettify.js +0 -28
  37. data/api/public/docs/index.html +0 -2037
  38. data/api/public/docs/javascript.html +0 -798
  39. data/api/public/examples/container-app.html +0 -119
  40. data/api/public/examples/fluid.html +0 -122
  41. data/api/public/examples/hero.html +0 -79
  42. data/api/public/js/bootstrap-alerts.js +0 -113
  43. data/api/public/js/bootstrap-buttons.js +0 -62
  44. data/api/public/js/bootstrap-dropdown.js +0 -55
  45. data/api/public/js/bootstrap-modal.js +0 -260
  46. data/api/public/js/bootstrap-popover.js +0 -86
  47. data/api/public/js/bootstrap-scrollspy.js +0 -107
  48. data/api/public/js/bootstrap-tabs.js +0 -80
  49. data/api/public/js/bootstrap-twipsy.js +0 -310
  50. data/api/public/js/tests/index.html +0 -40
  51. data/api/public/js/tests/unit/bootstrap-alerts.js +0 -41
  52. data/api/public/js/tests/unit/bootstrap-buttons.js +0 -42
  53. data/api/public/js/tests/unit/bootstrap-dropdown.js +0 -52
  54. data/api/public/js/tests/unit/bootstrap-modal.js +0 -151
  55. data/api/public/js/tests/unit/bootstrap-popover.js +0 -76
  56. data/api/public/js/tests/unit/bootstrap-scrollspy.js +0 -31
  57. data/api/public/js/tests/unit/bootstrap-tabs.js +0 -77
  58. data/api/public/js/tests/unit/bootstrap-twipsy.js +0 -81
  59. data/api/public/js/tests/vendor/qunit.css +0 -232
  60. data/api/public/js/tests/vendor/qunit.js +0 -1510
  61. data/api/public/lib/bootstrap.less +0 -26
  62. data/api/public/lib/forms.less +0 -479
  63. data/api/public/lib/mixins.less +0 -222
  64. data/api/public/lib/patterns.less +0 -1060
  65. data/api/public/lib/reset.less +0 -141
  66. data/api/public/lib/scaffolding.less +0 -137
  67. data/api/public/lib/tables.less +0 -224
  68. data/api/public/lib/type.less +0 -187
  69. data/api/public/lib/variables.less +0 -60
  70. data/api/public/namey.css +0 -33
  71. data/api/public/ui.js +0 -55
  72. data/api/views/index.erb +0 -203
@@ -1,12 +0,0 @@
1
- source 'https://rubygems.org'
2
- source 'http://gemcutter.org'
3
-
4
- gem "sinatra"
5
- gem "sinatra-sequel"
6
- gem "mysql"
7
- gem "sequel"
8
- gem "json"
9
-
10
- gem "shotgun"
11
-
12
- gem "namey"
@@ -1,10 +0,0 @@
1
- require 'rubygems'
2
- require 'bundler'
3
-
4
- Bundler.require
5
-
6
- # update this to point to your database
7
- ENV['DATABASE_URL'] = "mysql://username@hostname/database"
8
-
9
- require './namey_app'
10
- run Sinatra::Application
@@ -1,78 +0,0 @@
1
- require 'sinatra'
2
- require 'sinatra/sequel'
3
- require 'namey'
4
- require 'json'
5
-
6
- class Hash
7
- def symbolize_keys!
8
- keys.each do |key|
9
- self[(key.to_sym rescue key) || key] = delete(key)
10
- end
11
- self
12
- end
13
- end
14
-
15
-
16
- # Establish the database connection; or, omit this and use the DATABASE_URL
17
- # environment variable as the connection string:
18
- #set :database, 'mysql://username@hostname/database'
19
-
20
-
21
- #
22
- # migration for logging names
23
- #
24
- migration "create the generated_names table" do
25
- database.create_table :generated_names do
26
- primary_key :id
27
- String :name, :null => false
28
- timestamp :created_at, :null => false
29
- end
30
- end
31
-
32
- get '/' do
33
- # use index.haml for readme
34
- erb :index #, :layout => :index
35
- end
36
-
37
- get '/name.?:format?' do
38
- @generator = Namey::Generator.new(database)
39
-
40
- opts = {
41
- :frequency => :common
42
- }.merge(params.symbolize_keys!)
43
-
44
- if params[:with_surname] == "true"
45
- opts[:with_surname] = true
46
- else
47
- opts[:with_surname] = false
48
- end
49
-
50
- [:type, :frequency].each do |key|
51
- opts[key] = opts[key].to_sym if opts.has_key?(key)
52
- end
53
-
54
- opts.delete(:type) if ! [:male, :female, :surname].include?(opts[:type])
55
-
56
- count = (params.delete(:count) || 1).to_i
57
- count = 10 if count > 10
58
-
59
- names = 1.upto(count).collect do
60
- @generator.generate(opts)
61
- end.compact
62
-
63
- names.each do |name|
64
- database[:generated_names].insert(:name => name)
65
- end
66
-
67
- if params[:format] == "json"
68
- content_type :json, 'charset' => 'utf-8'
69
- tmp = JSON.generate names
70
- if params[:callback]
71
- "#{params[:callback]}(#{tmp});"
72
- else
73
- tmp
74
- end
75
- else
76
- ["<ul>", names.collect { |n| "<li>#{n}</li>" }.join(" "), "</ul>"].join("")
77
- end
78
- end
@@ -1,176 +0,0 @@
1
- Apache License
2
- Version 2.0, January 2004
3
- http://www.apache.org/licenses/
4
-
5
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
-
7
- 1. Definitions.
8
-
9
- "License" shall mean the terms and conditions for use, reproduction,
10
- and distribution as defined by Sections 1 through 9 of this document.
11
-
12
- "Licensor" shall mean the copyright owner or entity authorized by
13
- the copyright owner that is granting the License.
14
-
15
- "Legal Entity" shall mean the union of the acting entity and all
16
- other entities that control, are controlled by, or are under common
17
- control with that entity. For the purposes of this definition,
18
- "control" means (i) the power, direct or indirect, to cause the
19
- direction or management of such entity, whether by contract or
20
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
- outstanding shares, or (iii) beneficial ownership of such entity.
22
-
23
- "You" (or "Your") shall mean an individual or Legal Entity
24
- exercising permissions granted by this License.
25
-
26
- "Source" form shall mean the preferred form for making modifications,
27
- including but not limited to software source code, documentation
28
- source, and configuration files.
29
-
30
- "Object" form shall mean any form resulting from mechanical
31
- transformation or translation of a Source form, including but
32
- not limited to compiled object code, generated documentation,
33
- and conversions to other media types.
34
-
35
- "Work" shall mean the work of authorship, whether in Source or
36
- Object form, made available under the License, as indicated by a
37
- copyright notice that is included in or attached to the work
38
- (an example is provided in the Appendix below).
39
-
40
- "Derivative Works" shall mean any work, whether in Source or Object
41
- form, that is based on (or derived from) the Work and for which the
42
- editorial revisions, annotations, elaborations, or other modifications
43
- represent, as a whole, an original work of authorship. For the purposes
44
- of this License, Derivative Works shall not include works that remain
45
- separable from, or merely link (or bind by name) to the interfaces of,
46
- the Work and Derivative Works thereof.
47
-
48
- "Contribution" shall mean any work of authorship, including
49
- the original version of the Work and any modifications or additions
50
- to that Work or Derivative Works thereof, that is intentionally
51
- submitted to Licensor for inclusion in the Work by the copyright owner
52
- or by an individual or Legal Entity authorized to submit on behalf of
53
- the copyright owner. For the purposes of this definition, "submitted"
54
- means any form of electronic, verbal, or written communication sent
55
- to the Licensor or its representatives, including but not limited to
56
- communication on electronic mailing lists, source code control systems,
57
- and issue tracking systems that are managed by, or on behalf of, the
58
- Licensor for the purpose of discussing and improving the Work, but
59
- excluding communication that is conspicuously marked or otherwise
60
- designated in writing by the copyright owner as "Not a Contribution."
61
-
62
- "Contributor" shall mean Licensor and any individual or Legal Entity
63
- on behalf of whom a Contribution has been received by Licensor and
64
- subsequently incorporated within the Work.
65
-
66
- 2. Grant of Copyright License. Subject to the terms and conditions of
67
- this License, each Contributor hereby grants to You a perpetual,
68
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
- copyright license to reproduce, prepare Derivative Works of,
70
- publicly display, publicly perform, sublicense, and distribute the
71
- Work and such Derivative Works in Source or Object form.
72
-
73
- 3. Grant of Patent License. Subject to the terms and conditions of
74
- this License, each Contributor hereby grants to You a perpetual,
75
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
- (except as stated in this section) patent license to make, have made,
77
- use, offer to sell, sell, import, and otherwise transfer the Work,
78
- where such license applies only to those patent claims licensable
79
- by such Contributor that are necessarily infringed by their
80
- Contribution(s) alone or by combination of their Contribution(s)
81
- with the Work to which such Contribution(s) was submitted. If You
82
- institute patent litigation against any entity (including a
83
- cross-claim or counterclaim in a lawsuit) alleging that the Work
84
- or a Contribution incorporated within the Work constitutes direct
85
- or contributory patent infringement, then any patent licenses
86
- granted to You under this License for that Work shall terminate
87
- as of the date such litigation is filed.
88
-
89
- 4. Redistribution. You may reproduce and distribute copies of the
90
- Work or Derivative Works thereof in any medium, with or without
91
- modifications, and in Source or Object form, provided that You
92
- meet the following conditions:
93
-
94
- (a) You must give any other recipients of the Work or
95
- Derivative Works a copy of this License; and
96
-
97
- (b) You must cause any modified files to carry prominent notices
98
- stating that You changed the files; and
99
-
100
- (c) You must retain, in the Source form of any Derivative Works
101
- that You distribute, all copyright, patent, trademark, and
102
- attribution notices from the Source form of the Work,
103
- excluding those notices that do not pertain to any part of
104
- the Derivative Works; and
105
-
106
- (d) If the Work includes a "NOTICE" text file as part of its
107
- distribution, then any Derivative Works that You distribute must
108
- include a readable copy of the attribution notices contained
109
- within such NOTICE file, excluding those notices that do not
110
- pertain to any part of the Derivative Works, in at least one
111
- of the following places: within a NOTICE text file distributed
112
- as part of the Derivative Works; within the Source form or
113
- documentation, if provided along with the Derivative Works; or,
114
- within a display generated by the Derivative Works, if and
115
- wherever such third-party notices normally appear. The contents
116
- of the NOTICE file are for informational purposes only and
117
- do not modify the License. You may add Your own attribution
118
- notices within Derivative Works that You distribute, alongside
119
- or as an addendum to the NOTICE text from the Work, provided
120
- that such additional attribution notices cannot be construed
121
- as modifying the License.
122
-
123
- You may add Your own copyright statement to Your modifications and
124
- may provide additional or different license terms and conditions
125
- for use, reproduction, or distribution of Your modifications, or
126
- for any such Derivative Works as a whole, provided Your use,
127
- reproduction, and distribution of the Work otherwise complies with
128
- the conditions stated in this License.
129
-
130
- 5. Submission of Contributions. Unless You explicitly state otherwise,
131
- any Contribution intentionally submitted for inclusion in the Work
132
- by You to the Licensor shall be under the terms and conditions of
133
- this License, without any additional terms or conditions.
134
- Notwithstanding the above, nothing herein shall supersede or modify
135
- the terms of any separate license agreement you may have executed
136
- with Licensor regarding such Contributions.
137
-
138
- 6. Trademarks. This License does not grant permission to use the trade
139
- names, trademarks, service marks, or product names of the Licensor,
140
- except as required for reasonable and customary use in describing the
141
- origin of the Work and reproducing the content of the NOTICE file.
142
-
143
- 7. Disclaimer of Warranty. Unless required by applicable law or
144
- agreed to in writing, Licensor provides the Work (and each
145
- Contributor provides its Contributions) on an "AS IS" BASIS,
146
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
- implied, including, without limitation, any warranties or conditions
148
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
- PARTICULAR PURPOSE. You are solely responsible for determining the
150
- appropriateness of using or redistributing the Work and assume any
151
- risks associated with Your exercise of permissions under this License.
152
-
153
- 8. Limitation of Liability. In no event and under no legal theory,
154
- whether in tort (including negligence), contract, or otherwise,
155
- unless required by applicable law (such as deliberate and grossly
156
- negligent acts) or agreed to in writing, shall any Contributor be
157
- liable to You for damages, including any direct, indirect, special,
158
- incidental, or consequential damages of any character arising as a
159
- result of this License or out of the use or inability to use the
160
- Work (including but not limited to damages for loss of goodwill,
161
- work stoppage, computer failure or malfunction, or any and all
162
- other commercial damages or losses), even if such Contributor
163
- has been advised of the possibility of such damages.
164
-
165
- 9. Accepting Warranty or Additional Liability. While redistributing
166
- the Work or Derivative Works thereof, You may choose to offer,
167
- and charge a fee for, acceptance of support, warranty, indemnity,
168
- or other liability obligations and/or rights consistent with this
169
- License. However, in accepting such obligations, You may act only
170
- on Your own behalf and on Your sole responsibility, not on behalf
171
- of any other Contributor, and only if You agree to indemnify,
172
- defend, and hold each Contributor harmless for any liability
173
- incurred by, or claims asserted against, such Contributor by reason
174
- of your accepting any such warranty or additional liability.
175
-
176
- END OF TERMS AND CONDITIONS
@@ -1,30 +0,0 @@
1
- VERSION=1.4.0
2
- DATE=$(shell DATE)
3
- BOOTSTRAP = ./bootstrap.css
4
- BOOTSTRAP_MIN = ./bootstrap.min.css
5
- BOOTSTRAP_LESS = ./lib/bootstrap.less
6
- LESS_COMPRESSOR ?= `which lessc`
7
- WATCHR ?= `which watchr`
8
-
9
- build:
10
- @@if test ! -z ${LESS_COMPRESSOR}; then \
11
- sed -e 's/@VERSION/'"v${VERSION}"'/' -e 's/@DATE/'"${DATE}"'/' <${BOOTSTRAP_LESS} >${BOOTSTRAP_LESS}.tmp; \
12
- lessc ${BOOTSTRAP_LESS}.tmp > ${BOOTSTRAP}; \
13
- lessc ${BOOTSTRAP_LESS}.tmp > ${BOOTSTRAP_MIN} --compress; \
14
- rm -f ${BOOTSTRAP_LESS}.tmp; \
15
- echo "Bootstrap successfully built! - `date`"; \
16
- else \
17
- echo "You must have the LESS compiler installed in order to build Bootstrap."; \
18
- echo "You can install it by running: npm install less -g"; \
19
- fi
20
-
21
- watch:
22
- @@if test ! -z ${WATCHR}; then \
23
- echo "Watching less files..."; \
24
- watchr -e "watch('lib/.*\.less') { system 'make' }"; \
25
- else \
26
- echo "You must have the watchr installed in order to watch Bootstrap less files."; \
27
- echo "You can install it by running: gem install watchr"; \
28
- fi
29
-
30
- .PHONY: build watch
@@ -1,105 +0,0 @@
1
- TWITTER BOOTSTRAP
2
- =================
3
-
4
- Bootstrap is Twitter's toolkit for kickstarting CSS for websites, apps, and more. It includes base CSS styles for typography, forms, buttons, tables, grids, navigation, alerts, and more.
5
-
6
- To get started -- checkout http://twitter.github.com/bootstrap!
7
-
8
-
9
- Usage
10
- -----
11
-
12
- You can use Twitter Bootstrap in one of two ways: just drop the compiled CSS into any new project and start cranking, or run LESS on your site and compile on the fly like a boss.
13
-
14
- Here's what the LESS version looks like:
15
-
16
- ``` html
17
- <link rel="stylesheet/less" type="text/css" href="lib/bootstrap.less">
18
- <script src="less.js" type="text/javascript"></script>
19
- ```
20
-
21
- Or if you prefer, the standard css way:
22
-
23
- ``` html
24
- <link rel="stylesheet" type="text/css" href="bootstrap.css">
25
- ```
26
-
27
- For more info, refer to the docs!
28
-
29
-
30
- Versioning
31
- ----------
32
-
33
- For transparency and insight into our release cycle, and for striving to maintain backwards compatibility, Bootstrap will be maintained under the Semantic Versioning guidelines as much as possible.
34
-
35
- Releases will be numbered with the follow format:
36
-
37
- `<major>.<minor>.<patch>`
38
-
39
- And constructed with the following guidelines:
40
-
41
- * Breaking backwards compatibility bumps the major
42
- * New additions without breaking backwards compatibility bumps the minor
43
- * Bug fixes and misc changes bump the patch
44
-
45
- For more information on SemVer, please visit http://semver.org/.
46
-
47
-
48
- Bug tracker
49
- -----------
50
-
51
- Have a bug? Please create an issue here on GitHub!
52
-
53
- https://github.com/twitter/bootstrap/issues
54
-
55
-
56
- Twitter account
57
- ---------------
58
-
59
- Keep up to date on announcements and more by following Bootstrap on Twitter, <a href="http://twitter.com/TwBootstrap">@TwBootstrap</a>.
60
-
61
-
62
- Mailing list
63
- ------------
64
-
65
- Have a question? Ask on our mailing list!
66
-
67
- twitter-bootstrap@googlegroups.com
68
-
69
- http://groups.google.com/group/twitter-bootstrap
70
-
71
-
72
- Developers
73
- ----------
74
-
75
- We have included a makefile with convenience methods for working with the bootstrap library.
76
-
77
- + **build** - `make build`
78
- This will run the less compiler on the bootstrap lib and generate a bootstrap.css and bootstrap.min.css file.
79
- The lessc compiler is required for this command to run.
80
-
81
- + **watch** - `make watch`
82
- This is a convenience method for watching your less files and automatically building them whenever you save.
83
- Watchr is required for this command to run.
84
-
85
-
86
- Authors
87
- -------
88
-
89
- **Mark Otto**
90
-
91
- + http://twitter.com/mdo
92
- + http://github.com/markdotto
93
-
94
- **Jacob Thornton**
95
-
96
- + http://twitter.com/fat
97
- + http://github.com/fat
98
-
99
-
100
- License
101
- ---------------------
102
-
103
- Copyright 2011 Twitter, Inc.
104
-
105
- Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
Binary file
@@ -1,90 +0,0 @@
1
- /** namey */
2
- namey = {
3
-
4
- /*
5
- * Lightweight JSONP fetcher
6
- * Copyright 2010 Erik Karlsson. All rights reserved.
7
- * BSD licensed
8
- */
9
- // Lightweight JSONP fetcher - www.nonobtrusive.com
10
- jsonP:(function(){var a=0,c,f,b,d=this;function e(j){var i=document.createElement("script"),h=false;i.src=j;i.async=true;i.onload=i.onreadystatechange=function(){if(!h&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){h=true;i.onload=i.onreadystatechange=null;if(i&&i.parentNode){i.parentNode.removeChild(i)}}};if(!c){c=document.getElementsByTagName("head")[0]}c.appendChild(i)}function g(h,j,k){f="?";j=j||{};for(b in j){if(j.hasOwnProperty(b)){f+=encodeURIComponent(b)+"="+encodeURIComponent(j[b])+"&"}}var i="json"+(++a);d[i]=function(l){k(l);try{delete d[i]}catch(m){}d[i]=null;};e(h+f+"callback="+i);return i}return{get:g}}()),
11
-
12
- /**
13
- * API for namey random name generator. There's two basic ways to use it. First, just call namey.get with a callback:
14
- *
15
- * namey.get(function(n) { console.log(n); }); => ["John Clark"]
16
- *
17
- * The call returns an array because there's an option to request more than one random name. For example:
18
- *
19
- * namey.get({ count: 3, callback: function(n) { console.log(n); }}); ; => ["John Cook", "Ruth Fisher", "Donna Collins"]
20
- *
21
- * Here's the full list of parameters:
22
- *
23
- * count -- how many names you would like (default: 1)
24
- *
25
- * type -- what sort of name you want 'female', 'male', 'surname', or leave blank if you want both genders
26
- *
27
- * with_surname -- true/false, if you want surnames with the first
28
- * name. If false, you'll just get first names. Default is true.
29
- *
30
- * frequency -- 'common', 'rare', 'all' -- default is 'common'. This
31
- * picks a subset of names from the database -- common names are
32
- * names that occur frequently, rare is names that occur rarely.
33
- *
34
- * min_freq/max_freq -- specific values to get back a really
35
- * specific subset of the names db. values should be between 0 and
36
- * 100. You probably don't need this, but here's an example:
37
- * namey.get({ count: 3, min_freq: 30, max_freq: 50, callback: function(n) { console.log(n); }});
38
- * => ["Crystal Zimmerman", "Joshua Rivas", "Tina Bryan"]
39
- *
40
- * callback -- a function to do something with the data. The data
41
- * passed in will be an array of names -- use them wisely.
42
- *
43
- */
44
- get : function(options) {
45
- var callback;
46
- var tmp_params = {};
47
- var host = "namey.muffinlabs.com";
48
-
49
- if ( typeof(options) == "function" ) {
50
- callback = options;
51
- }
52
- else if ( typeof(options) == "object" ) {
53
- callback = options.callback;
54
-
55
- if ( typeof(options.host) !== "undefined" ) {
56
- host = options.host;
57
- }
58
-
59
- if ( typeof(options.count) == "undefined" ) {
60
- options.count = 1;
61
- }
62
- tmp_params.count = options.count;
63
-
64
- if ( typeof(options.type) != "undefined" && options.type != "both" ) {
65
- tmp_params.type = options.type;
66
- };
67
-
68
- if ( options.type != "surname" && typeof(options.with_surname) != "undefined" ) {
69
- tmp_params.with_surname = options.with_surname;
70
- }
71
- if ( options.min_freq ) {
72
- tmp_params.min_freq = options.min_freq;
73
- tmp_params.max_freq = options.max_freq;
74
- }
75
- else if ( typeof(options.frequency) != "undefined" ) {
76
- tmp_params.frequency = options.frequency;
77
- }
78
-
79
- }
80
-
81
- this.jsonP.get('//' + host + '/name.json', tmp_params, function(d) {
82
- if ( typeof(callback) == "function" ) {
83
- callback(d);
84
- }
85
- else {
86
- console.log(d);
87
- }
88
- });
89
- }
90
- }