coneco 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/License.txt +1 -1
- data/Manifest.txt +0 -1
- data/README.txt +14 -9
- data/Rakefile +3 -3
- data/lib/coneco/version.rb +1 -1
- data/website/index.html +75 -11
- data/website/index.txt +11 -27
- data/website/stylesheets/screen.css +138 -138
- metadata +3 -12
- data/PostInstall.txt +0 -7
data/License.txt
CHANGED
data/Manifest.txt
CHANGED
data/README.txt
CHANGED
@@ -1,32 +1,37 @@
|
|
1
1
|
= coneco
|
2
2
|
|
3
|
-
*
|
3
|
+
* RubyForge: http://rubyforge.org/projects/coneco/
|
4
4
|
|
5
|
-
|
5
|
+
* coneco.net Web Services: http://apidoc.coneco.net/
|
6
6
|
|
7
|
-
|
7
|
+
== DESCRIPTION:
|
8
8
|
|
9
|
-
|
9
|
+
coneco is a pure Ruby client for coneco.net Web Services
|
10
10
|
|
11
|
-
|
11
|
+
It Provides an easy way to access the latest coneco.net products search results from
|
12
|
+
your own programs.
|
12
13
|
|
13
14
|
== SYNOPSIS:
|
14
15
|
|
15
|
-
|
16
|
+
apikey = 'xxxx'
|
17
|
+
c = Coneco::Client.new(apikey)
|
18
|
+
c.find_categories
|
19
|
+
c.find_products(nil, 'pc')
|
20
|
+
c.get_reviews(1040908007)
|
16
21
|
|
17
22
|
== REQUIREMENTS:
|
18
23
|
|
19
|
-
*
|
24
|
+
* json (or json_pure)
|
20
25
|
|
21
26
|
== INSTALL:
|
22
27
|
|
23
|
-
*
|
28
|
+
* sudo gem install coneco
|
24
29
|
|
25
30
|
== LICENSE:
|
26
31
|
|
27
32
|
(The MIT License)
|
28
33
|
|
29
|
-
Copyright (c) 2008
|
34
|
+
Copyright (c) 2008 kilynn
|
30
35
|
|
31
36
|
Permission is hereby granted, free of charge, to any person obtaining
|
32
37
|
a copy of this software and associated documentation files (the
|
data/Rakefile
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require 'config/requirements'
|
2
|
-
require 'config/hoe' # setup Hoe + all gem configuration
|
3
|
-
|
1
|
+
require 'config/requirements'
|
2
|
+
require 'config/hoe' # setup Hoe + all gem configuration
|
3
|
+
|
4
4
|
Dir['tasks/**/*.rake'].each { |rake| load rake }
|
data/lib/coneco/version.rb
CHANGED
data/website/index.html
CHANGED
@@ -1,11 +1,75 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<link rel="stylesheet" href="stylesheets/screen.css" type="text/css" media="screen" />
|
6
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
7
|
+
<title>
|
8
|
+
coneco
|
9
|
+
</title>
|
10
|
+
<script src="javascripts/rounded_corners_lite.inc.js" type="text/javascript"></script>
|
11
|
+
<style>
|
12
|
+
|
13
|
+
</style>
|
14
|
+
<script type="text/javascript">
|
15
|
+
window.onload = function() {
|
16
|
+
settings = {
|
17
|
+
tl: { radius: 10 },
|
18
|
+
tr: { radius: 10 },
|
19
|
+
bl: { radius: 10 },
|
20
|
+
br: { radius: 10 },
|
21
|
+
antiAlias: true,
|
22
|
+
autoPad: true,
|
23
|
+
validTags: ["div"]
|
24
|
+
}
|
25
|
+
var versionBox = new curvyCorners(settings, document.getElementById("version"));
|
26
|
+
versionBox.applyCornersToAll();
|
27
|
+
}
|
28
|
+
</script>
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="main">
|
32
|
+
|
33
|
+
<h1>coneco</h1>
|
34
|
+
<div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/coneco"; return false'>
|
35
|
+
<p>Get Version</p>
|
36
|
+
<a href="http://rubyforge.org/projects/coneco" class="numbers">0.0.2</a>
|
37
|
+
</div>
|
38
|
+
<h2>What</h2>
|
39
|
+
<p>pure Ruby Client for coneco.net Web Services</p>
|
40
|
+
<h2>Installing</h2>
|
41
|
+
<p><pre class='syntax'><span class="ident">sudo</span> <span class="ident">gem</span> <span class="ident">install</span> <span class="ident">coneco</span></pre></p>
|
42
|
+
<h2>The basics</h2>
|
43
|
+
<h2>Demonstration of usage</h2>
|
44
|
+
apikey = ‘xxxx’<br>
|
45
|
+
c = Coneco::Client.new(apikey)<br>
|
46
|
+
c.find_categories<br>
|
47
|
+
c.find_products(nil, ’pc’)<br>
|
48
|
+
c.get_reviews(1040908007)<br>
|
49
|
+
<p>you must get apikey for coneco.net webservices at <a href="https://www.coneco.net/api/">here</a></p>
|
50
|
+
<h2>Forum</h2>
|
51
|
+
<p><a href="http://groups.google.com/group/ruby-coneco">http://groups.google.com/group/ruby-coneco</a></p>
|
52
|
+
<h2>How to submit patches</h2>
|
53
|
+
<p>The trunk repository is <code>svn://rubyforge.org/var/svn/coneco/trunk</code> for anonymous access.</p>
|
54
|
+
<p>You can fetch the source from either:</p>
|
55
|
+
<ul>
|
56
|
+
<li>rubyforge: <a href="http://rubyforge.org/scm/?group_id=7016">http://rubyforge.org/scm/?group_id=7016</a></li>
|
57
|
+
</ul>
|
58
|
+
<h3>Build and test instructions</h3>
|
59
|
+
<pre>cd coneco
|
60
|
+
rake test
|
61
|
+
rake install_gem</pre>
|
62
|
+
<h2>License</h2>
|
63
|
+
<p>This code is free to use under the terms of the <span class="caps">MIT</span> license.</p>
|
64
|
+
<h2>Contact</h2>
|
65
|
+
<p>Comments are welcome. Send an email to ruby-coneco at googlearoups dot com email via the <a href="http://groups.google.com/group/ruby-coneco">forum</a></p>
|
66
|
+
<p class="coda">
|
67
|
+
<a href="FIXME email">FIXME full name</a>, 24th September 2008<br>
|
68
|
+
Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
|
69
|
+
</p>
|
70
|
+
</div>
|
71
|
+
|
72
|
+
<!-- insert site tracking codes here, like Google Urchin -->
|
73
|
+
|
74
|
+
</body>
|
75
|
+
</html>
|
data/website/index.txt
CHANGED
@@ -1,10 +1,8 @@
|
|
1
1
|
h1. coneco
|
2
2
|
|
3
|
-
h1. → 'coneco'
|
4
|
-
|
5
|
-
|
6
3
|
h2. What
|
7
4
|
|
5
|
+
pure Ruby Client for coneco.net Web Services
|
8
6
|
|
9
7
|
h2. Installing
|
10
8
|
|
@@ -15,32 +13,30 @@ h2. The basics
|
|
15
13
|
|
16
14
|
h2. Demonstration of usage
|
17
15
|
|
16
|
+
apikey = 'xxxx'<br>
|
17
|
+
c = Coneco::Client.new(apikey)<br>
|
18
|
+
c.find_categories<br>
|
19
|
+
c.find_products(nil, 'pc')<br>
|
20
|
+
c.get_reviews(1040908007)<br>
|
18
21
|
|
22
|
+
<p>you must get apikey for coneco.net webservices at "here":https://www.coneco.net/api/</p>
|
19
23
|
|
20
24
|
h2. Forum
|
21
25
|
|
22
|
-
"http://groups.google.com/group/coneco":http://groups.google.com/group/coneco
|
26
|
+
"http://groups.google.com/group/ruby-coneco":http://groups.google.com/group/ruby-coneco
|
23
27
|
|
24
|
-
TODO - create Google Group - coneco
|
25
28
|
|
26
29
|
h2. How to submit patches
|
27
30
|
|
28
|
-
Read the "8 steps for fixing other people's code":http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/ and for section "8b: Submit patch to Google Groups":http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/#8b-google-groups, use the Google Group above.
|
29
|
-
|
30
|
-
TODO - pick SVN or Git instructions
|
31
|
-
|
32
31
|
The trunk repository is <code>svn://rubyforge.org/var/svn/coneco/trunk</code> for anonymous access.
|
33
32
|
|
34
|
-
OOOORRRR
|
35
|
-
|
36
33
|
You can fetch the source from either:
|
37
34
|
|
38
|
-
<%
|
35
|
+
<% rubyforge_project_id = 7016
|
36
|
+
if rubyforge_project_id %>
|
39
37
|
|
40
38
|
* rubyforge: "http://rubyforge.org/scm/?group_id=<%= rubyforge_project_id %>":http://rubyforge.org/scm/?group_id=<%= rubyforge_project_id %>
|
41
39
|
|
42
|
-
<pre>git clone git://rubyforge.org/coneco.git</pre>
|
43
|
-
|
44
40
|
<% else %>
|
45
41
|
|
46
42
|
* rubyforge: MISSING IN ACTION
|
@@ -54,18 +50,6 @@ Or you can hack website/index.txt and make it all go away!!
|
|
54
50
|
|
55
51
|
<% end %>
|
56
52
|
|
57
|
-
* github: "http://github.com/GITHUB_USERNAME/coneco/tree/master":http://github.com/GITHUB_USERNAME/coneco/tree/master
|
58
|
-
|
59
|
-
<pre>git clone git://github.com/GITHUB_USERNAME/coneco.git</pre>
|
60
|
-
|
61
|
-
|
62
|
-
TODO - add "github_username: username" to ~/.rubyforge/user-config.yml and newgem will reuse it for future projects.
|
63
|
-
|
64
|
-
|
65
|
-
* gitorious: "git://gitorious.org/coneco/mainline.git":git://gitorious.org/coneco/mainline.git
|
66
|
-
|
67
|
-
<pre>git clone git://gitorious.org/coneco/mainline.git</pre>
|
68
|
-
|
69
53
|
h3. Build and test instructions
|
70
54
|
|
71
55
|
<pre>cd coneco
|
@@ -79,5 +63,5 @@ This code is free to use under the terms of the MIT license.
|
|
79
63
|
|
80
64
|
h2. Contact
|
81
65
|
|
82
|
-
Comments are welcome. Send an email to
|
66
|
+
Comments are welcome. Send an email to ruby-coneco at googlearoups dot com email via the "forum":http://groups.google.com/group/ruby-coneco
|
83
67
|
|
@@ -1,138 +1,138 @@
|
|
1
|
-
body {
|
2
|
-
background-color: #E1D1F1;
|
3
|
-
font-family: "Georgia", sans-serif;
|
4
|
-
font-size: 16px;
|
5
|
-
line-height: 1.6em;
|
6
|
-
padding: 1.6em 0 0 0;
|
7
|
-
color: #333;
|
8
|
-
}
|
9
|
-
h1, h2, h3, h4, h5, h6 {
|
10
|
-
color: #444;
|
11
|
-
}
|
12
|
-
h1 {
|
13
|
-
font-family: sans-serif;
|
14
|
-
font-weight: normal;
|
15
|
-
font-size: 4em;
|
16
|
-
line-height: 0.8em;
|
17
|
-
letter-spacing: -0.1ex;
|
18
|
-
margin: 5px;
|
19
|
-
}
|
20
|
-
li {
|
21
|
-
padding: 0;
|
22
|
-
margin: 0;
|
23
|
-
list-style-type: square;
|
24
|
-
}
|
25
|
-
a {
|
26
|
-
color: #5E5AFF;
|
27
|
-
background-color: #DAC;
|
28
|
-
font-weight: normal;
|
29
|
-
text-decoration: underline;
|
30
|
-
}
|
31
|
-
blockquote {
|
32
|
-
font-size: 90%;
|
33
|
-
font-style: italic;
|
34
|
-
border-left: 1px solid #111;
|
35
|
-
padding-left: 1em;
|
36
|
-
}
|
37
|
-
.caps {
|
38
|
-
font-size: 80%;
|
39
|
-
}
|
40
|
-
|
41
|
-
#main {
|
42
|
-
width: 45em;
|
43
|
-
padding: 0;
|
44
|
-
margin: 0 auto;
|
45
|
-
}
|
46
|
-
.coda {
|
47
|
-
text-align: right;
|
48
|
-
color: #77f;
|
49
|
-
font-size: smaller;
|
50
|
-
}
|
51
|
-
|
52
|
-
table {
|
53
|
-
font-size: 90%;
|
54
|
-
line-height: 1.4em;
|
55
|
-
color: #ff8;
|
56
|
-
background-color: #111;
|
57
|
-
padding: 2px 10px 2px 10px;
|
58
|
-
border-style: dashed;
|
59
|
-
}
|
60
|
-
|
61
|
-
th {
|
62
|
-
color: #fff;
|
63
|
-
}
|
64
|
-
|
65
|
-
td {
|
66
|
-
padding: 2px 10px 2px 10px;
|
67
|
-
}
|
68
|
-
|
69
|
-
.success {
|
70
|
-
color: #0CC52B;
|
71
|
-
}
|
72
|
-
|
73
|
-
.failed {
|
74
|
-
color: #E90A1B;
|
75
|
-
}
|
76
|
-
|
77
|
-
.unknown {
|
78
|
-
color: #995000;
|
79
|
-
}
|
80
|
-
pre, code {
|
81
|
-
font-family: monospace;
|
82
|
-
font-size: 90%;
|
83
|
-
line-height: 1.4em;
|
84
|
-
color: #ff8;
|
85
|
-
background-color: #111;
|
86
|
-
padding: 2px 10px 2px 10px;
|
87
|
-
}
|
88
|
-
.comment { color: #aaa; font-style: italic; }
|
89
|
-
.keyword { color: #eff; font-weight: bold; }
|
90
|
-
.punct { color: #eee; font-weight: bold; }
|
91
|
-
.symbol { color: #0bb; }
|
92
|
-
.string { color: #6b4; }
|
93
|
-
.ident { color: #ff8; }
|
94
|
-
.constant { color: #66f; }
|
95
|
-
.regex { color: #ec6; }
|
96
|
-
.number { color: #F99; }
|
97
|
-
.expr { color: #227; }
|
98
|
-
|
99
|
-
#version {
|
100
|
-
float: right;
|
101
|
-
text-align: right;
|
102
|
-
font-family: sans-serif;
|
103
|
-
font-weight: normal;
|
104
|
-
background-color: #B3ABFF;
|
105
|
-
color: #141331;
|
106
|
-
padding: 15px 20px 10px 20px;
|
107
|
-
margin: 0 auto;
|
108
|
-
margin-top: 15px;
|
109
|
-
border: 3px solid #141331;
|
110
|
-
}
|
111
|
-
|
112
|
-
#version .numbers {
|
113
|
-
display: block;
|
114
|
-
font-size: 4em;
|
115
|
-
line-height: 0.8em;
|
116
|
-
letter-spacing: -0.1ex;
|
117
|
-
margin-bottom: 15px;
|
118
|
-
}
|
119
|
-
|
120
|
-
#version p {
|
121
|
-
text-decoration: none;
|
122
|
-
color: #141331;
|
123
|
-
background-color: #B3ABFF;
|
124
|
-
margin: 0;
|
125
|
-
padding: 0;
|
126
|
-
}
|
127
|
-
|
128
|
-
#version a {
|
129
|
-
text-decoration: none;
|
130
|
-
color: #141331;
|
131
|
-
background-color: #B3ABFF;
|
132
|
-
}
|
133
|
-
|
134
|
-
.clickable {
|
135
|
-
cursor: pointer;
|
136
|
-
cursor: hand;
|
137
|
-
}
|
138
|
-
|
1
|
+
body {
|
2
|
+
background-color: #E1D1F1;
|
3
|
+
font-family: "Georgia", sans-serif;
|
4
|
+
font-size: 16px;
|
5
|
+
line-height: 1.6em;
|
6
|
+
padding: 1.6em 0 0 0;
|
7
|
+
color: #333;
|
8
|
+
}
|
9
|
+
h1, h2, h3, h4, h5, h6 {
|
10
|
+
color: #444;
|
11
|
+
}
|
12
|
+
h1 {
|
13
|
+
font-family: sans-serif;
|
14
|
+
font-weight: normal;
|
15
|
+
font-size: 4em;
|
16
|
+
line-height: 0.8em;
|
17
|
+
letter-spacing: -0.1ex;
|
18
|
+
margin: 5px;
|
19
|
+
}
|
20
|
+
li {
|
21
|
+
padding: 0;
|
22
|
+
margin: 0;
|
23
|
+
list-style-type: square;
|
24
|
+
}
|
25
|
+
a {
|
26
|
+
color: #5E5AFF;
|
27
|
+
background-color: #DAC;
|
28
|
+
font-weight: normal;
|
29
|
+
text-decoration: underline;
|
30
|
+
}
|
31
|
+
blockquote {
|
32
|
+
font-size: 90%;
|
33
|
+
font-style: italic;
|
34
|
+
border-left: 1px solid #111;
|
35
|
+
padding-left: 1em;
|
36
|
+
}
|
37
|
+
.caps {
|
38
|
+
font-size: 80%;
|
39
|
+
}
|
40
|
+
|
41
|
+
#main {
|
42
|
+
width: 45em;
|
43
|
+
padding: 0;
|
44
|
+
margin: 0 auto;
|
45
|
+
}
|
46
|
+
.coda {
|
47
|
+
text-align: right;
|
48
|
+
color: #77f;
|
49
|
+
font-size: smaller;
|
50
|
+
}
|
51
|
+
|
52
|
+
table {
|
53
|
+
font-size: 90%;
|
54
|
+
line-height: 1.4em;
|
55
|
+
color: #ff8;
|
56
|
+
background-color: #111;
|
57
|
+
padding: 2px 10px 2px 10px;
|
58
|
+
border-style: dashed;
|
59
|
+
}
|
60
|
+
|
61
|
+
th {
|
62
|
+
color: #fff;
|
63
|
+
}
|
64
|
+
|
65
|
+
td {
|
66
|
+
padding: 2px 10px 2px 10px;
|
67
|
+
}
|
68
|
+
|
69
|
+
.success {
|
70
|
+
color: #0CC52B;
|
71
|
+
}
|
72
|
+
|
73
|
+
.failed {
|
74
|
+
color: #E90A1B;
|
75
|
+
}
|
76
|
+
|
77
|
+
.unknown {
|
78
|
+
color: #995000;
|
79
|
+
}
|
80
|
+
pre, code {
|
81
|
+
font-family: monospace;
|
82
|
+
font-size: 90%;
|
83
|
+
line-height: 1.4em;
|
84
|
+
color: #ff8;
|
85
|
+
background-color: #111;
|
86
|
+
padding: 2px 10px 2px 10px;
|
87
|
+
}
|
88
|
+
.comment { color: #aaa; font-style: italic; }
|
89
|
+
.keyword { color: #eff; font-weight: bold; }
|
90
|
+
.punct { color: #eee; font-weight: bold; }
|
91
|
+
.symbol { color: #0bb; }
|
92
|
+
.string { color: #6b4; }
|
93
|
+
.ident { color: #ff8; }
|
94
|
+
.constant { color: #66f; }
|
95
|
+
.regex { color: #ec6; }
|
96
|
+
.number { color: #F99; }
|
97
|
+
.expr { color: #227; }
|
98
|
+
|
99
|
+
#version {
|
100
|
+
float: right;
|
101
|
+
text-align: right;
|
102
|
+
font-family: sans-serif;
|
103
|
+
font-weight: normal;
|
104
|
+
background-color: #B3ABFF;
|
105
|
+
color: #141331;
|
106
|
+
padding: 15px 20px 10px 20px;
|
107
|
+
margin: 0 auto;
|
108
|
+
margin-top: 15px;
|
109
|
+
border: 3px solid #141331;
|
110
|
+
}
|
111
|
+
|
112
|
+
#version .numbers {
|
113
|
+
display: block;
|
114
|
+
font-size: 4em;
|
115
|
+
line-height: 0.8em;
|
116
|
+
letter-spacing: -0.1ex;
|
117
|
+
margin-bottom: 15px;
|
118
|
+
}
|
119
|
+
|
120
|
+
#version p {
|
121
|
+
text-decoration: none;
|
122
|
+
color: #141331;
|
123
|
+
background-color: #B3ABFF;
|
124
|
+
margin: 0;
|
125
|
+
padding: 0;
|
126
|
+
}
|
127
|
+
|
128
|
+
#version a {
|
129
|
+
text-decoration: none;
|
130
|
+
color: #141331;
|
131
|
+
background-color: #B3ABFF;
|
132
|
+
}
|
133
|
+
|
134
|
+
.clickable {
|
135
|
+
cursor: pointer;
|
136
|
+
cursor: hand;
|
137
|
+
}
|
138
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coneco
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kilynn
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-09-
|
12
|
+
date: 2008-09-24 00:00:00 +09:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -33,14 +33,12 @@ extra_rdoc_files:
|
|
33
33
|
- History.txt
|
34
34
|
- License.txt
|
35
35
|
- Manifest.txt
|
36
|
-
- PostInstall.txt
|
37
36
|
- README.txt
|
38
37
|
- website/index.txt
|
39
38
|
files:
|
40
39
|
- History.txt
|
41
40
|
- License.txt
|
42
41
|
- Manifest.txt
|
43
|
-
- PostInstall.txt
|
44
42
|
- README.txt
|
45
43
|
- Rakefile
|
46
44
|
- config/hoe.rb
|
@@ -65,14 +63,7 @@ files:
|
|
65
63
|
- website/template.html.erb
|
66
64
|
has_rdoc: true
|
67
65
|
homepage: http://coneco.rubyforge.org
|
68
|
-
post_install_message:
|
69
|
-
|
70
|
-
For more information on coneco, see http://coneco.rubyforge.org
|
71
|
-
|
72
|
-
NOTE: Change this information in PostInstall.txt
|
73
|
-
You can also delete it if you don't want it.
|
74
|
-
|
75
|
-
|
66
|
+
post_install_message: ""
|
76
67
|
rdoc_options:
|
77
68
|
- --main
|
78
69
|
- README.txt
|