lingohub 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -48,8 +48,6 @@ module Lingohub::Command
48
48
  group.command 'project:info --project <name>', 'show project info, like web url and number of translations'
49
49
  group.command 'project:open --project <name>', 'open the project in a web browser'
50
50
  group.command 'project:rename <oldname> <newname>', 'rename the project'
51
- group.command 'project:deactivate --project <name>', 'deactivates the project'
52
- group.command 'project:activate --project <name>', 'activates a deactivated project again'
53
51
  group.space
54
52
  end
55
53
 
@@ -52,25 +52,6 @@ module Lingohub::Command
52
52
  Launchy.open project.weburl
53
53
  end
54
54
 
55
- def deactivate
56
- display "=== #{project.title}"
57
- display "Web URL: #{project.weburl}"
58
- display "Owner: #{project.owner}"
59
-
60
- if confirm_command(project.title)
61
- redisplay "Deactivating #{project.title} ... "
62
- project.destroy
63
- display "done"
64
- end
65
- end
66
-
67
- def activate
68
- redisplay "Activating #{project.title} ... "
69
- project.activate
70
- display "done"
71
- end
72
-
73
-
74
55
  end
75
56
 
76
57
  end
@@ -124,7 +124,6 @@ module Lingohub
124
124
  collaborators_url = links[4]["href"]
125
125
  invitations_url = links[5]["href"]
126
126
  search_url = links[6]["href"]
127
- activate_url = links[7]["href"]
128
127
 
129
128
  init_attributes :title => project_hash["title"], :link => link,
130
129
  :deactivated_at => project_hash["deactivated_at"], :weburl => weburl,
@@ -132,7 +131,7 @@ module Lingohub
132
131
  :opensource => project_hash["opensource"], :project_locales => project_hash["project_locales"],
133
132
  :translations_url => translations_url, :resources_url => resources_url,
134
133
  :collaborators_url => collaborators_url, :invitations_url => invitations_url,
135
- :search_url => search_url, :activate_url => activate_url
134
+ :search_url => search_url
136
135
  end
137
136
 
138
137
  def init_attributes(attributes)
@@ -3,6 +3,11 @@ module Lingohub
3
3
  class Resource
4
4
  attr_accessor :locale
5
5
 
6
+ STRATEGY_UPDATE_AND_CREATE = 'update_and_create'
7
+ STRATEGY_MASTER_LOCALE_STRUCTURE = 'master_locale_structure'
8
+ STRATEGY_OVERRIDE ='override'
9
+ STRATEGIES = [STRATEGY_MASTER_LOCALE_STRUCTURE, STRATEGY_UPDATE_AND_CREATE, STRATEGY_OVERRIDE]
10
+
6
11
  def initialize(client, locale, link)
7
12
  @client = client
8
13
  @locale = locale
@@ -1,4 +1,4 @@
1
1
  module Lingohub
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  API_VERSION = 'v1'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lingohub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-10-05 00:00:00.000000000 Z
12
+ date: 2014-11-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client